mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +00:00
518fb94124
* ci: use actions/checkout@v2 * ci: always specify python version * ci: pin external actions * ci: split docs job, pin immediate dependencies * ci: correct hugo sha256sum * ci: full repo fetch depth for tests * ci: use pip-tools to pin all the things * ci: minor fixes * ci: fixup * ci: streamline pinned install * ci: minor fixes * ci: fix py3.8 pins * ci: don't persist checkout credentials * ci: always run local linter * ci: test docs deployment from actions-hardening branch * ci: fix docs job * ci: pass in credentials * ci: fix file permissions * ci: try harder to fix docs deploy * ci: fix docker artifact name * Revert "ci: test docs deployment from actions-hardening branch" This reverts commit 30cfb7a814b61a8926fc0623e3e70b6dd5106d90. * unpin PyPI dependencies * ci: install tox first * ci: fixups * ci: fixups * ci: fixups * ci: fixups
47 lines
865 B
INI
47 lines
865 B
INI
[tox]
|
|
envlist = py, flake8, mypy
|
|
skipsdist = True
|
|
toxworkdir={env:TOX_WORK_DIR:.tox}
|
|
|
|
[testenv]
|
|
deps =
|
|
-e .[dev]
|
|
setenv = HOME = {envtmpdir}
|
|
commands =
|
|
mitmdump --version
|
|
pytest --timeout 60 -vv --cov-report xml \
|
|
--continue-on-collection-errors \
|
|
--cov=mitmproxy --cov=release \
|
|
--full-cov=mitmproxy/ \
|
|
{posargs}
|
|
|
|
[testenv:flake8]
|
|
deps =
|
|
flake8>=3.8.4,<4
|
|
flake8-tidy-imports>=4.2.0,<5
|
|
commands =
|
|
flake8 --jobs 8 mitmproxy examples test release {posargs}
|
|
|
|
[testenv:filename_matching]
|
|
deps =
|
|
commands =
|
|
python ./test/filename_matching.py
|
|
|
|
[testenv:mypy]
|
|
deps = mypy==0.812
|
|
commands =
|
|
mypy {posargs}
|
|
|
|
[testenv:individual_coverage]
|
|
commands =
|
|
python ./test/individual_coverage.py {posargs}
|
|
|
|
[testenv:wheeltest]
|
|
recreate = True
|
|
deps =
|
|
commands =
|
|
pip install {posargs}
|
|
mitmproxy --version
|
|
mitmdump --version
|
|
mitmweb --version
|