Skip to content

Commit

Permalink
ci: re-cache hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Silver committed Oct 20, 2024
1 parent 6bfcdf8 commit 0fb98e7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ jobs:
run: pip install hatch
- name: Configure hatch
run: hatch config set dirs.env.virtual .venv
# - name: Cache hatch virtualenv
# uses: actions/cache@v4
# id: cache-venv
# with:
# path: ./.venv/
# # cache key depends on pyproject.toml
# key: ${{ runner.os }}-venv-${{ hashFiles('pyproject.toml') }}
# restore-keys: |
# ${{ runner.os }}-venv-
- name: Cache hatch virtualenv
uses: actions/cache@v4
id: cache-venv
with:
path: ./.venv/
# cache key depends on pyproject.toml
key: ${{ runner.os }}-venv-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Create virtualenvs
# build virtualenvs, but only if they're not already cached
run: hatch env create lint && hatch env create test
# if: steps.cache-venv.outputs.cache-hit != 'true'
if: steps.cache-venv.outputs.cache-hit != 'true'
- name: Lines of code (radon)
run: hatch run lint:run-loc-summarize | tee loc-summary.txt
- name: Upload lines of code
Expand Down

0 comments on commit 0fb98e7

Please sign in to comment.