forked from SFDO-Tooling/Snowfakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (29 loc) · 726 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[tox]
envlist = lint, py38, py39, coverage-report
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/snowfakery
commands = coverage run {envbindir}/pytest []
deps =
-r{toxinidir}/requirements_dev.txt
install_command =
python -m pip install {opts} {packages}
[gh-actions]
python =
3.8: py38
3.9: py39
[testenv:lint]
description = Run all pre-commit hooks.
basepython = python3.8
skip_install = true
deps = pre-commit
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files
[testenv:coverage-report]
description = Report coverage over all test runs.
basepython = python3.8
deps = coverage[toml]>=5.0.2
skip_install = true
commands =
coverage combine
coverage report