update test config
This commit is contained in:
parent
ee089488ad
commit
bfd4dc6d30
2 changed files with 3 additions and 14 deletions
9
.github/workflows/tests.yaml
vendored
9
.github/workflows/tests.yaml
vendored
|
|
@ -42,14 +42,5 @@ jobs:
|
|||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
|
||||
- name: set full Python version in PY env var
|
||||
# See https://pre-commit.com/#github-actions-example
|
||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||
- name: cache pre-commit
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
if: matrix.tox == 'style'
|
||||
- run: pip install tox
|
||||
- run: tox -e ${{ matrix.tox }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue