Skip to content

Commit

Permalink
chore(deps): update actions/cache action to v4 (#591)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jan 18, 2024
1 parent 66569a4 commit 2a5246f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
poetry-version: ${{ env.POETRY_VERSION }}
# Updating poetry.lock for all of the examples takes over 6 minutes, so it's worth caching.
- name: Cache poetry.lock
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-poetry-lock
with:
path: 'examples/**/poetry.lock'
Expand All @@ -43,7 +43,7 @@ jobs:
echo "::endgroup::"
done
- name: Cache virtualenvs
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-venv
with:
path: 'examples/**/.venv'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_nimg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Check for lock changes (ni-measurementlink-generator)
run: poetry lock --check
- name: Cache virtualenv (ni-measurementlink-generator)
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ni_measurementlink_generator/.venv
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_nims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:

# ni-measurementlink-service, all extras
- name: Restore cached virtualenv (ni-measurementlink-service, all extras)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-nims-all-extras
with:
path: .venv
key: ni-measurementlink-service-all-extras-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install ni-measurementlink-service (all extras)
run: poetry install -v --all-extras
- name: Save cached virtualenv (ni-measurementlink-service, all extras)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: steps.restore-nims-all-extras.outputs.cache-hit != 'true'
with:
path: .venv
Expand All @@ -55,15 +55,15 @@ jobs:

# ni-measurementlink-service, all extras, docs
- name: Restore cached virtualenv (ni-measurementlink-service, all extras, docs)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-nims-all-extras-docs
with:
path: .venv
key: ni-measurementlink-service-all-extras-docs-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install ni-measurementlink-service (all extras, docs)
run: poetry install -v --all-extras --with docs
- name: Save cached virtualenv (ni-measurementlink-service, all extras, docs)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: steps.restore-nims-all-extras-docs.outputs.cache-hit != 'true'
with:
path: .venv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_system_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Copy and rename .env.simulation to .env
run: cp examples/.env.simulation .env
- name: Cache virtualenvs
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:

# ni-measurementlink-service, no extras
- name: Restore cached virtualenv (ni-measurementlink-service, no extras)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-nims-no-extras
with:
path: .venv
key: ni-measurementlink-service-no-extras-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install ni-measurementlink-service (no extras)
run: poetry install -v
- name: Save cached virtualenv (ni-measurementlink-service, no extras)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: steps.restore-nims-no-extras.outputs.cache-hit != 'true'
with:
path: .venv
Expand All @@ -51,15 +51,15 @@ jobs:

# ni-measurementlink-service, all extras
- name: Restore cached virtualenv (ni-measurementlink-service, all extras)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-nims-all-extras
with:
path: .venv
key: ni-measurementlink-service-all-extras-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install ni-measurementlink-service (all extras)
run: poetry install -v --all-extras
- name: Save cached ni-measurementlink-service virtualenv (all extras)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: steps.restore-nims-all-extras.outputs.cache-hit != 'true'
with:
path: .venv
Expand All @@ -69,7 +69,7 @@ jobs:

# ni-measurementlink-generator
- name: Restore cached virtualenv (ni-measurementlink-generator)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-nimg
with:
path: ni_measurementlink_generator/.venv
Expand All @@ -78,7 +78,7 @@ jobs:
run: poetry install -v
working-directory: ./ni_measurementlink_generator
- name: Save cached virtualenv (ni-measurementlink-generator)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: steps.restore-nimg.outputs.cache-hit != 'true'
with:
path: ni_measurementlink_generator/.venv
Expand Down

0 comments on commit 2a5246f

Please sign in to comment.