Skip to content

Commit

Permalink
Improve test workflow caching when running with act
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinz01 committed Oct 25, 2024
1 parent 8fdafc3 commit 47335b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ jobs:
version: '0.4.26'
enable-cache: true
cache-dependency-glob: 'uv.lock'
prune-cache: ${{ env.ACT != 'true' }}

- name: Cache UV python installs
uses: actions/cache@v2
if: ${{ env.ACT == 'true' }}
with:
path: ~/.local/share/uv/python
key: ${{ runner.os }}-uv-python-${{ hashFiles('.python-version', 'pyproject.toml') }}

- name: Install dependencies
run: uv sync --all-extras --dev
run: uv run poe sync

- name: Run tests
run: uv run poe test

0 comments on commit 47335b0

Please sign in to comment.