Skip to content

Commit 4bf8d09

Browse files
Modernize GitHub Actions in coverage and spec_update workflows
Bump the action versions in coverage.yml and spec_update.yml to match the versions already standardized in ci.yml and pypiupload.yml, and to current major releases: - actions/checkout: v2/v3 -> v5 - actions/setup-python: v3.1.4/v4 -> v6 - codecov/codecov-action: v3.1.6 -> v5 - peter-evans/create-pull-request: v5.0.0 -> v7 This supersedes the stale dependabot PRs #422, #471, #473, and #478, which targeted long-outdated versions and had merge conflicts.
1 parent 3e7bebe commit 4bf8d09

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
Coverage:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v5
1515
- name: Setup Python environment
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: '3.11'
1919
- name: Setup virtual environment
@@ -33,17 +33,17 @@ jobs:
3333
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
3434
coverage xml
3535
- name: Publish Coverage
36-
uses: codecov/codecov-action@v3.1.6
36+
uses: codecov/codecov-action@v5
3737
with:
3838
token: ${{ secrets.CODECOV_TOKEN }}
3939
flags: unit
4040
fail_ci_if_error: true
4141
IntegrationCoverage:
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v5
4545
- name: Setup Python environment
46-
uses: actions/setup-python@v3.1.4
46+
uses: actions/setup-python@v6
4747
with:
4848
python-version: '3.11'
4949
- name: Setup virtual environment
@@ -77,7 +77,7 @@ jobs:
7777
coverage run --rcfile=.coveragerc -m pytest test/integration/test_dropbox.py
7878
coverage xml
7979
- name: Publish Coverage
80-
uses: codecov/codecov-action@v3.1.6
80+
uses: codecov/codecov-action@v5
8181
with:
8282
token: ${{ secrets.CODECOV_TOKEN }}
8383
flags: integration

.github/workflows/spec_update.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
Update:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v5
1212
- name: Setup Python environment
13-
uses: actions/setup-python@v3.1.4
13+
uses: actions/setup-python@v6
1414
with:
1515
python-version: '3.11'
1616
- name: Get current time
@@ -51,7 +51,7 @@ jobs:
5151
pip install -r requirements.txt
5252
python generate_base_client.py
5353
- name: Create Pull Request
54-
uses: peter-evans/create-pull-request@v5.0.0
54+
uses: peter-evans/create-pull-request@v7
5555
if: steps.git-diff-num.outputs.num-diff != 0
5656
with:
5757
token: ${{ secrets.SPEC_UPDATE_TOKEN }}

0 commit comments

Comments
 (0)