Skip to content

Commit

Permalink
Fail the CI restore build step if the cache is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt committed May 3, 2024
1 parent 6df2cb8 commit c1224b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Restore build
uses: actions/cache@v4
with:
fail-on-cache-miss: true
path: ${{ env.pythonLocation }}
key: build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }} # Cache the entire build Python environment
restore-keys: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- name: Restore build
uses: actions/cache@v4
with:
fail-on-cache-miss: true
path: ${{ env.pythonLocation }}
key: build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
- name: Cache release
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: Restore build
uses: actions/cache@v4
with:
fail-on-cache-miss: true
path: ${{ env.pythonLocation }}
key: build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
- run: make check-syntax-errors
Expand All @@ -44,6 +45,7 @@ jobs:
- name: Restore build
uses: actions/cache@v4
with:
fail-on-cache-miss: true
path: ${{ env.pythonLocation }}
key: build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
- run: make test
Expand All @@ -60,6 +62,7 @@ jobs:
- name: Restore build
uses: actions/cache@v4
with:
fail-on-cache-miss: true
path: ${{ env.pythonLocation }}
key: build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
- name: Test the Web API
Expand Down

0 comments on commit c1224b4

Please sign in to comment.