Skip to content

Commit

Permalink
Merge pull request #175 from espressif/ci/fix-ubuntu-version
Browse files Browse the repository at this point in the history
Ci/fix ubuntu version
  • Loading branch information
hfudev authored Jan 6, 2025
2 parents 1ea1e9b + f4da02c commit 49f4aed
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 70 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/issue_comment.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/new_issues.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/new_prs.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Publish PyPI
on:
push:
tags:
- 'v*'
- "v*"

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: "3.7"
- name: Publish packages
env:
FLIT_USERNAME: __token__
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/sync-jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# FILE: .github/workflows/sync-jira.yml
---
# This GitHub Actions workflow synchronizes GitHub issues, comments, and pull requests with Jira.
# It triggers on new issues, issue comments, and on a scheduled basis.
# The workflow uses a custom action to perform the synchronization with Jira (espressif/sync-jira-actions).

name: 🔷 Sync to Jira

run-name: >
Sync to Jira -
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
github.event_name == 'schedule' && 'New Pull Requests' ||
github.event_name == 'issues' && 'New Issue' ||
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
on:
issues: { types: [opened] }
issue_comment: { types: [created, edited, deleted] }
schedule: [cron: "0 * * * *"]
workflow_dispatch:
inputs:
action:
{
description: "Action to be performed",
required: true,
default: "mirror-issues",
}
issue-numbers:
{
description: "Issue numbers to sync (comma-separated)",
required: true,
}

jobs:
sync-to-jira:
name: >
Sync to Jira -
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
github.event_name == 'schedule' && 'New Pull Requests' ||
github.event_name == 'issues' && 'New Issue' ||
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Check out
uses: actions/checkout@v4

- name: Run synchronization to Jira
uses: espressif/sync-jira-actions@v1
with:
cron_job: ${{ github.event_name == 'schedule' && 'true' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_PASS: ${{ secrets.JIRA_PASS }}
JIRA_PROJECT: RDT
JIRA_COMPONENT: idf-build-apps
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
2 changes: 1 addition & 1 deletion .github/workflows/test-build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build-docs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build-idf-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defaults:

jobs:
build-python-packages:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down

1 comment on commit 49f4aed

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
idf_build_apps
   __main__.py330%4–9
   app.py5238185%206, 251, 260–262, 294, 306, 323, 364–365, 368, 378–379, 390–393, 453–458, 478, 516, 572–580, 590–591, 601, 619–620, 622, 638–647, 663–701, 706–707, 711–712, 723–725, 731, 832–840, 850–880, 884–894, 985–991, 994, 1016
   args.py2913389%154, 310, 323, 330, 351–356, 366–371, 537, 540–541, 547, 557–559, 562, 587–588, 591–592, 721–722, 783, 785, 845, 864–874
   autocompletions.py292417%16–23, 31–54
   constants.py63986%20–21, 33–38, 47–48, 61–62
   finder.py84693%79–80, 150, 167–169
   log.py48492%37, 50, 55, 80
   main.py1996169%76–80, 94–99, 140–144, 174, 198–200, 204, 209–222, 237–240, 251–276, 366–373, 382–383, 405–413, 416, 422–423, 429–431
   session_args.py54787%46–50, 56, 70
   utils.py1882388%26, 35, 113, 130–131, 151–155, 203, 246, 273–279, 292–295, 314–315, 380
idf_build_apps/junit
   report.py93990%82, 92, 109–111, 137, 144–145, 170
   utils.py291066%18, 26–35
idf_build_apps/manifest
   if_parser.py109595%62, 99, 105, 169, 174
   manifest.py219996%90, 92, 139, 161, 306, 337–338, 357, 401
idf_build_apps/vendors
   pydantic_sources.py64691%50, 73, 76–79, 96
TOTAL212329086% 

Tests Skipped Failures Errors Time
115 0 💤 0 ❌ 0 🔥 9m 19s ⏱️

Please sign in to comment.