Skip to content

Commit

Permalink
ci: un-cache hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Silver committed Oct 20, 2024
1 parent 36344c2 commit ecb16c1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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
Expand Down

0 comments on commit ecb16c1

Please sign in to comment.