From c8bc192eb03937152a0a3137409201c7dba59a51 Mon Sep 17 00:00:00 2001 From: theOehrly <23384863+theOehrly@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:40:48 +0200 Subject: [PATCH] MNT/CI: update deprecated actions to latest versions, closes #623 --- .github/workflows/docs.yml | 13 +++++++------ .github/workflows/release.yml | 2 +- .github/workflows/selective_cache_persist.yml | 2 +- .github/workflows/semver_test.yml | 2 +- .github/workflows/tests.yml | 17 +++++++++-------- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c0b7fc7d1..284d73d0f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,9 +22,9 @@ 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 @@ -32,7 +32,7 @@ jobs: 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') }} @@ -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: | @@ -66,7 +67,7 @@ jobs: mkdir -p docs/_build/html - name: Checkout current docs - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: gh-pages path: docs/_build/html @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5292ceaaf..871d6637f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/selective_cache_persist.yml b/.github/workflows/selective_cache_persist.yml index 59e4e690b..f8e3f7ca9 100644 --- a/.github/workflows/selective_cache_persist.yml +++ b/.github/workflows/selective_cache_persist.yml @@ -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('*.*') }} diff --git a/.github/workflows/semver_test.yml b/.github/workflows/semver_test.yml index 73357af03..fcb8cff97 100644 --- a/.github/workflows/semver_test.yml +++ b/.github/workflows/semver_test.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d92a5c7e2..2fe9f05ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ 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 }} @@ -39,7 +39,7 @@ jobs: 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') }} @@ -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: | @@ -78,7 +79,7 @@ jobs: name: Linting (Ruff) steps: - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.12' @@ -86,7 +87,7 @@ jobs: 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') }} @@ -115,7 +116,7 @@ jobs: steps: - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.12' @@ -123,7 +124,7 @@ jobs: 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') }} @@ -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