Skip to content

Commit

Permalink
MNT/CI: update deprecated actions to latest versions, closes #623
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Jul 30, 2024
1 parent 606b56b commit 9029074
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.12'

- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the complete repo history (for setuptools-scm)

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('requirements/*.txt') }}
Expand All @@ -50,8 +50,9 @@ jobs:
mkdir doc_cache # make sure cache dir exists
- name: Cache FastF1
uses: actions/cache@v3
uses: actions/cache@v4
with:
save-always: true
path: ./doc_cache
key: fastf1-doc-cache-${{ hashFiles('*.*') }}
restore-keys: |
Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:
git push origin gh-pages --force
- name: Upload docs as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: github.event_name != 'release'
with:
name: Documentation Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the complete repo history (for setuptools-scm)
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/selective_cache_persist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
mkdir test_cache # make sure cache dir exists
- name: Cache FastF1
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./test_cache
key: fastf1-${{ matrix.python-version }}-${{ hashFiles('*.*') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semver_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the complete repo history (for setuptools-scm)
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
name: Tests on ${{ matrix.python-version }} ${{ matrix.name-suffix }}
steps:
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Checkout repo
uses: actions/checkout@v4

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('requirements/*.txt') }}
Expand All @@ -61,8 +61,9 @@ jobs:
mkdir test_cache # make sure cache dir exists
- name: Cache FastF1
uses: actions/cache@v3
uses: actions/cache@v4
with:
save-always: true
path: ./test_cache
key: fastf1-${{ matrix.python-version }}${{ matrix.cache-suffix }}-${{ hashFiles('*.*') }}
restore-keys: |
Expand All @@ -78,15 +79,15 @@ jobs:
name: Linting (Ruff)
steps:
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Checkout repo
uses: actions/checkout@v4

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('requirements/*.txt') }}
Expand Down Expand Up @@ -115,15 +116,15 @@ jobs:

steps:
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Checkout repo
uses: actions/checkout@v4

- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('requirements/*.txt') }}
Expand All @@ -145,7 +146,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
Expand Down

0 comments on commit 9029074

Please sign in to comment.