From 5ff5e69d2fa2d66a43ddd49cd2ddbb53e6c5aa4b Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Tue, 30 Jul 2024 10:01:50 +0200 Subject: [PATCH] ci(pytest): invoke `pytest` directly instead of `setup.py test` (#725) Closes reanahub/reana#814 --- run-tests.sh | 2 +- setup.cfg | 3 --- tox.ini | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 7dd1d088..50084f87 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -82,7 +82,7 @@ check_sphinx () { } check_pytest () { - python setup.py test + pytest } check_all() { diff --git a/setup.cfg b/setup.cfg index 03bb6f71..4ad8e0ae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,9 +4,6 @@ # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. -[aliases] -test = pytest - [build_sphinx] source-dir = docs/ build-dir = docs/_build diff --git a/tox.ini b/tox.ini index 9904a694..eaf205d5 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,9 @@ # under the terms of the MIT License; see LICENSE file for more details. [tox] -envlist = py36, py37, py38, py39, py310, py311, py312 +envlist = py38, py39, py310, py311, py312 [testenv] deps = pytest pytest-cov -commands = {envpython} setup.py test +commands = pytest {posargs}