mirror of https://github.com/pallets/flask.git
update test config
This commit is contained in:
parent
ee089488ad
commit
bfd4dc6d30
|
@ -42,14 +42,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
|
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: pip install tox
|
||||||
- run: tox -e ${{ matrix.tox }}
|
- run: tox -e ${{ matrix.tox }}
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -15,11 +15,9 @@ deps =
|
||||||
https://github.com/pallets/itsdangerous/archive/master.tar.gz
|
https://github.com/pallets/itsdangerous/archive/master.tar.gz
|
||||||
https://github.com/pallets/click/archive/master.tar.gz
|
https://github.com/pallets/click/archive/master.tar.gz
|
||||||
|
|
||||||
commands =
|
examples/tutorial[test]
|
||||||
pip install -q -e examples/tutorial[test]
|
examples/javascript[test]
|
||||||
pip install -q -e examples/javascript[test]
|
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:tests examples}
|
||||||
|
|
||||||
pytest --tb=short --basetemp={envtmpdir} {posargs:tests examples}
|
|
||||||
|
|
||||||
[testenv:style]
|
[testenv:style]
|
||||||
deps = pre-commit
|
deps = pre-commit
|
||||||
|
|
Loading…
Reference in New Issue