This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ jobs:
18
18
- name : Install dependencies
19
19
run : |
20
20
python -m pip install --upgrade pip
21
- pip install -r requirements.txt
22
- - name : Test with pytest
21
+ - name : Test with tox
23
22
run : |
24
- pip install pytest
25
- pytest -v --cov=. --cov-report term --cov-report=xml --strict-markers
23
+ pip install tox==3.14.0
24
+ tox -e ci
26
25
- name : Export to codecov.io
27
26
28
27
with :
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ __pycache__
10
10
.ipynb_checkpoints
11
11
12
12
.tox
13
+ .vscode
Original file line number Diff line number Diff line change 1
1
default : test
2
2
3
3
test :
4
- pytest -v -m " not slow " --strict-markers -W ignore::DeprecationWarning
4
+ tox
5
5
6
6
alltest :
7
- pytest -v --cov=. --cov-report term-missing --strict-markers -W ignore::DeprecationWarning
7
+ tox -e all
8
8
9
9
alltests : alltest
10
10
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py38
3
- skipsdist = True
2
+ envlist = py38
3
+ skipsdist = True
4
4
5
5
[testenv]
6
6
# one virtual env for all test - without this line tox will install .tox/all env to run the 'all' suit
7
- envdir = {toxinidir}/.tox
7
+ envdir = {toxworkdir}/common
8
8
9
9
deps =
10
10
-rrequirements.txt
11
11
12
12
commands =
13
- pytest -v - m " not slow" --strict-markers -W ignore::DeprecationWarning {posargs}
13
+ pytest -m " not slow" {posargs}
14
14
15
- [testenv:verbose ]
15
+ [testenv:all ]
16
16
commands =
17
- pytest -sxv {posargs}
17
+ pytest -- cov =. --cov-report term-missing {posargs}
18
18
19
- [testenv:all]
19
+ # runs on github workflow
20
+ [testenv:ci]
20
21
commands =
21
- pytest -v --strict-markers -W ignore::DeprecationWarning --cov =. --cov-report term-missing {posargs}
22
+ pytest --cov =. --cov-report term --cov-report =xml
23
+
24
+ [pytest]
25
+ addopts = -v -W once::DeprecationWarning --strict-markers
26
+ ignore = .tox .git data
27
+ markers =
28
+ slow: mark a test as taking a long time.
You can’t perform that action at this time.
0 commit comments