mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-31 18:18:00 +00:00
tests: Easier installation of test requirements via PIP
Burying these behind the tox.ini works fine on CI, but it means that someone has to ask the users to run an extra `pip install pytest` for the test suite. Not nice. This will need a follow-up commit to adjust the GitHub action to use this new simplified way. That cannot land via Gerrit due to GitHub's permission model. Change-Id: I8d2e610c91da728d72c7d19590b25bbd8713f0de
This commit is contained in:
1
tests/requirements.txt
Normal file
1
tests/requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pytest>=6.2.5,<7
|
||||||
2
tox.ini
2
tox.ini
@@ -4,7 +4,7 @@ skipsdist = True
|
|||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
pytest>=6.2.5,<7
|
-r{toxinidir}/tests/requirements.txt
|
||||||
cover: pytest-cov
|
cover: pytest-cov
|
||||||
linters: flake8
|
linters: flake8
|
||||||
linters: pep8-naming
|
linters: pep8-naming
|
||||||
|
|||||||
Reference in New Issue
Block a user