Skip to content

Commit

Permalink
Cache pre-commit environments
Browse files Browse the repository at this point in the history
  • Loading branch information
purefunctor committed Jun 8, 2021
1 parent 9eeeccd commit a75c25f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
path: .nox
key: nox-${{ runner.os }}-${{ hashFiles('pyproject.toml', 'poetry.lock') }}

- name: Cache Pre-Commit Environments
uses: actions/cache@v2
with:
path: ${{ env.PRE_COMMIT_HOME }}
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run Nox (Uncached)
if: steps.nox-cache.outputs.cache-hit != 'true'
run: PIP_USER=0 nox
Expand Down

0 comments on commit a75c25f

Please sign in to comment.