Skip to content

Commit

Permalink
CI: Upgrade GHA versions
Browse files Browse the repository at this point in the history
- checkout v2 -> v4
- setup-python v2 -> v5
- upload-artifact v2 -> v4
- download-artifact v2 -> v4
- codecov-action v1 -> v4
  • Loading branch information
scottclowe committed Sep 13, 2024
1 parent 8cf6a17 commit c2d8e9d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
notebooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Determine default branch
run: |
Expand All @@ -21,7 +21,7 @@ jobs:
echo "default_branch_ref=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV
- name: Set up Python 3.6
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.6"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
16 changes: 8 additions & 8 deletions .github/workflows/test-release-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
python -m pytest --timeout=300 --cov=fissa --cov-report term --cov-report xml --junitxml=testresults.xml
- name: Upload unittest coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: unittests
env_vars: OS,PYTHON
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:

- name: "Notebooks: Upload coverage to Codecov"
if: ${{ env.OS != 'windows-latest' || env.PYTHON != '3.6' }}
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: nbsmoke
env_vars: OS,PYTHON
Expand All @@ -144,7 +144,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Store wheel artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*
Expand All @@ -166,16 +166,16 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Download wheel artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wheel-*
path: dist/

- name: Store aggregated wheel artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist/*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
python -m pytest --timeout=180 --cov=fissa --cov-report term --cov-report xml --junitxml=testresults.xml
- name: Upload unittest coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: unittests
env_vars: OS,PYTHON
Expand All @@ -110,7 +110,7 @@ jobs:
run: python -m pytest --timeout=180 --nbsmoke-run ./examples/ --cov=fissa --cov-report term --cov-report xml --junitxml=nbsmoke.xml

- name: "Notebooks: Upload coverage to Codecov"
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
flags: nbsmoke
env_vars: OS,PYTHON
Expand Down

0 comments on commit c2d8e9d

Please sign in to comment.