Skip to content

Commit

Permalink
Tox caching (should speed up tests?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Oct 8, 2024
1 parent 80c29b2 commit 51d9849
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
python -m pip install --upgrade pip
python -m pip install tox coveralls
- name: Setup cache for tox
id: cache-tox
uses: actions/cache@v3
with:
path: ${{ inputs.working-directory }}/.tox
# Invalidate cache when pyproject.toml changes
key: ${{ hashFiles('pyproject.toml')}}

- name: Test with tox / unittest / coverage
run: |
tox
Expand Down

0 comments on commit 51d9849

Please sign in to comment.