Skip to content

Commit

Permalink
Add "Code quality" step to clear cache on schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Sep 19, 2023
1 parent a2e5d55 commit 3333827
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ concurrency:
cancel-in-progress: true

env:
# See description in lint.yml
depth: 100

jobs:
Expand Down Expand Up @@ -145,4 +144,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4

- name: Force recreation of pre-commit virtual environment for mypy
if: github.event_name == 'schedule'
run: gh cache list -L 999 | cut -f2 | grep pre-commit | xargs -I{} gh cache delete "{}" || true
env: { GH_TOKEN: "${{ github.token }}" }

- uses: pre-commit/[email protected]

0 comments on commit 3333827

Please sign in to comment.