-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
37 lines (33 loc) · 1.18 KB
/
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
36
37
[tox]
envlist =
py{37,38,39,310,311}
flake8
[testenv]
passenv=HOME
sitepackages = False
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest --cov-report=term-missing --cov=patch_rebaser tests
[testenv:flake8]
passenv=HOME
sitepackages = False
commands = flake8 patch_rebaser tests integration_tests
[testenv:integration]
allowlist_externals =
/usr/bin/find
/usr/bin/sudo
commands =
/usr/bin/find . -name '*.pyc' -delete # Avoid issues with pytests conf file discovery
/usr/bin/sudo docker build -t patch_rebaser_integration_tests .
/usr/bin/sudo docker run patch_rebaser_integration_tests /bin/sh -c "pytest -k integration_tests integration_tests" # Ensure we only run the integration tests
[testenv:integration_podman]
allowlist_externals =
/usr/bin/find
/usr/bin/podman
commands =
/usr/bin/find . -name '*.pyc' -delete # Avoid issues with pytests conf file discovery
/usr/bin/podman build -t patch_rebaser_integration_tests .
/usr/bin/podman run patch_rebaser_integration_tests /bin/sh -c "pytest -k integration_tests integration_tests" # Ensure we only run the integration tests
passenv =
HOME