Skip to content

Commit

Permalink
ugprade ci to actions/cache@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Jan 18, 2025
1 parent b38a8dc commit 0183e8e
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "key=${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ env.CACHE_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_ci.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ steps.python-venv-cache-key.outputs.key }}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -91,7 +91,7 @@ jobs:
# Install pre-commit hooks into the cached virtual environment
- name: Restore pre-commit hooks
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ steps.pre-commit-cache-key.outputs.key }}
Expand All @@ -116,7 +116,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -127,7 +127,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -167,7 +167,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -207,7 +207,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -247,7 +247,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -288,7 +288,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -333,7 +333,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -373,7 +373,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand Down Expand Up @@ -451,7 +451,7 @@ jobs:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: venv
key: ${{ needs.prepare-python-venv.outputs.python-venv-cache-key }}
Expand All @@ -462,7 +462,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-pre-commit
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ needs.prepare-pre-commit.outputs.pre-commit-cache-key }}
Expand Down

0 comments on commit 0183e8e

Please sign in to comment.