-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show warnings from tests with once:: filter
- Loading branch information
Showing
5 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,10 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Test with pytest | ||
- name: Test with tox | ||
run: | | ||
pip install pytest | ||
pytest -v --cov=. --cov-report term --cov-report=xml --strict-markers | ||
pip install tox==3.14.0 | ||
tox -e ci | ||
- name: Export to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ __pycache__ | |
.ipynb_checkpoints | ||
|
||
.tox | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
[tox] | ||
envlist=py38 | ||
skipsdist=True | ||
envlist = py38 | ||
skipsdist = True | ||
|
||
[testenv] | ||
# one virtual env for all test - without this line tox will install .tox/all env to run the 'all' suit | ||
envdir = {toxinidir}/.tox | ||
envdir = {toxworkdir}/common | ||
|
||
deps = | ||
-rrequirements.txt | ||
|
||
commands = | ||
pytest -v -m "not slow" --strict-markers -W ignore::DeprecationWarning {posargs} | ||
pytest -m "not slow" {posargs} | ||
|
||
[testenv:verbose] | ||
[testenv:all] | ||
commands = | ||
pytest -sxv {posargs} | ||
pytest --cov=. --cov-report term-missing {posargs} | ||
|
||
[testenv:all] | ||
# runs on github workflow | ||
[testenv:ci] | ||
commands = | ||
pytest -v --strict-markers -W ignore::DeprecationWarning --cov=. --cov-report term-missing {posargs} | ||
pytest --cov=. --cov-report term --cov-report=xml | ||
|
||
[pytest] | ||
addopts = -v -W once::DeprecationWarning --strict-markers | ||
ignore = .tox .git data | ||
markers = | ||
slow: mark a test as taking a long time. |