Skip to content

Commit

Permalink
ci: fail on venv cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioLoayzaM committed May 30, 2024
1 parent c1880e5 commit 84b809c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv

lint:
runs-on: ubuntu-22.04
Expand All @@ -38,7 +38,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Run the linter
run: |
source .venv/bin/activate
Expand All @@ -60,7 +61,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Run the type-checker
run: |
source .venv/bin/activate
Expand All @@ -82,7 +84,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Run the test suite and coverage
run: |
source .venv/bin/activate
Expand All @@ -105,7 +108,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Build the docs
run: |
source .venv/bin/activate
Expand All @@ -130,7 +134,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Build docs for publishing
run: |
source .venv/bin/activate
Expand Down Expand Up @@ -172,7 +177,8 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .venv
key: ${{ runner.os }}-venv
key: ${{ github.sha }}-venv
fail-on-cache-miss: true
- name: Build the package
run: |
source .venv/bin/activate
Expand Down

0 comments on commit 84b809c

Please sign in to comment.