Skip to content

Commit

Permalink
chore: update pre-commit GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Aug 5, 2020
1 parent 3cf3396 commit 92dec03
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: set PY
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
- uses: pre-commit/[email protected]

checks:
runs-on: ubuntu-latest
Expand All @@ -33,6 +27,7 @@ jobs:
- 3.5
- 3.6
- 3.8

name: Check Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 92dec03

Please sign in to comment.