Skip to content

Commit

Permalink
cache pre-commit venvs + dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Oct 2, 2023
1 parent 0fc51f1 commit ed40dbf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
# - name: Run tests
# run: pytest

- name: Cache pre-commit virtualenvs
uses: actions/cache@v3
if: matrix.python-version == 3.9
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}

# TODO: switch this to run on e.g. 3.11 (how to get the if statement to
# work?)
# Run pre-commit (only for python-3.9)
Expand Down

0 comments on commit ed40dbf

Please sign in to comment.