mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
38 lines
817 B
INI
38 lines
817 B
INI
[tox]
|
|
envlist =
|
|
lint,
|
|
py{37,38,39,310,311},
|
|
docs
|
|
|
|
[gh-actions]
|
|
# this make sure each ci job only run tests once.
|
|
# keey it sync with workflows/ci.yaml matrix
|
|
python =
|
|
3.7: py37
|
|
3.8: py38
|
|
3.9: py39
|
|
3.10: py310
|
|
3.11: py311
|
|
|
|
[testenv]
|
|
deps = -rrequirements/test.txt
|
|
commands = pytest --cov=github --cov-report=xml {posargs}
|
|
|
|
[testenv:lint]
|
|
basepython = python3.8
|
|
skip_install = true
|
|
deps =
|
|
-r requirements/types.txt
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
; Run mypy outside pre-commit because pre-commit runs mypy in a venv
|
|
; that doesn't have dependencies or their type annotations installed.
|
|
mypy github tests
|
|
|
|
[testenv:docs]
|
|
basepython = python3.8
|
|
skip_install = true
|
|
deps = -rrequirements.txt
|
|
commands = sphinx-build doc build
|