Skip to content

Commit 66a8264

Browse files
authored
Merge pull request #330 from espressif/ci/fix-ubuntu-version
Ci/fix ubuntu version
2 parents 256746f + 91c9214 commit 66a8264

File tree

7 files changed

+79
-56
lines changed

7 files changed

+79
-56
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: Upload Python Package
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Set up Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.7'
16+
python-version: "3.7"
1717
- name: Build packages
1818
run: bash foreach.sh build
1919
- name: Publish packages

.github/workflows/sync-jira.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# FILE: .github/workflows/sync-jira.yml
2+
---
3+
# This GitHub Actions workflow synchronizes GitHub issues, comments, and pull requests with Jira.
4+
# It triggers on new issues, issue comments, and on a scheduled basis.
5+
# The workflow uses a custom action to perform the synchronization with Jira (espressif/sync-jira-actions).
6+
7+
name: 🔷 Sync to Jira
8+
9+
run-name: >
10+
Sync to Jira -
11+
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
12+
github.event_name == 'schedule' && 'New Pull Requests' ||
13+
github.event_name == 'issues' && 'New Issue' ||
14+
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
15+
16+
on:
17+
issues: { types: [opened] }
18+
issue_comment: { types: [created, edited, deleted] }
19+
schedule: [cron: "0 * * * *"]
20+
workflow_dispatch:
21+
inputs:
22+
action:
23+
{
24+
description: "Action to be performed",
25+
required: true,
26+
default: "mirror-issues",
27+
}
28+
issue-numbers:
29+
{
30+
description: "Issue numbers to sync (comma-separated)",
31+
required: true,
32+
}
33+
34+
jobs:
35+
sync-to-jira:
36+
name: >
37+
Sync to Jira -
38+
${{ github.event_name == 'issue_comment' && 'Issue Comment' ||
39+
github.event_name == 'schedule' && 'New Pull Requests' ||
40+
github.event_name == 'issues' && 'New Issue' ||
41+
github.event_name == 'workflow_dispatch' && 'Manual Sync' }}
42+
runs-on: ubuntu-latest
43+
permissions:
44+
contents: read
45+
issues: write
46+
pull-requests: write
47+
steps:
48+
- name: Check out
49+
uses: actions/checkout@v4
50+
51+
- name: Run synchronization to Jira
52+
uses: espressif/sync-jira-actions@v1
53+
with:
54+
cron_job: ${{ github.event_name == 'schedule' && 'true' || '' }}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
58+
JIRA_PROJECT: RDT
59+
JIRA_COMPONENT: pytest-embedded
60+
JIRA_URL: ${{ secrets.JIRA_URL }}
61+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/sync_jira_issue_comments.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/sync_jira_new_issue.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/test-build-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: Test Build Docs
33
on:
44
pull_request:
55
paths:
6-
- '**.py'
7-
- 'docs/**'
8-
- '*.md'
6+
- "**.py"
7+
- "docs/**"
8+
- "*.md"
99

1010
jobs:
1111
test-build-docs:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.7'
18+
python-version: "3.7"
1919
- name: Install dependencies
2020
run: |
2121
bash foreach.sh install

.github/workflows/test-build-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55

66
jobs:
77
test-build-packages:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/checkout@v4
1111
- name: Set up Python
1212
uses: actions/setup-python@v5
1313
with:
14-
python-version: '3.7'
14+
python-version: "3.7"
1515
- name: Build packages
1616
run: |
1717
bash foreach.sh build

.github/workflows/test-python.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Test Python Packages
33
on:
44
pull_request:
55
paths:
6-
- '**.py'
6+
- "**.py"
77
- .github/workflows/test-python.yml
8-
- '!docs/**'
8+
- "!docs/**"
99
push:
10-
branches: [ main ]
10+
branches: [main]
1111

1212
# cancel jobs if new commit pushed
1313
concurrency:
@@ -20,10 +20,10 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23-
- python-version: '3.7'
24-
arch: 'ARM'
25-
- python-version: '3.13'
26-
arch: 'X64'
23+
- python-version: "3.7"
24+
arch: "ARM"
25+
- python-version: "3.13"
26+
arch: "X64"
2727
fail-fast: false
2828
runs-on:
2929
- self-hosted
@@ -63,5 +63,5 @@ jobs:
6363
- uses: actions/upload-artifact@v4
6464
if: failure()
6565
with:
66-
name: logs
66+
name: logs-${{ python-version }}
6767
path: logs.zip

0 commit comments

Comments
 (0)