From 34bbcdc56a06e11a901dd4adece0e0d46db0d61c Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Tue, 30 Jul 2024 09:23:55 +0200 Subject: [PATCH] ci(pytest): invoke `pytest` directly instead of `setup.py test` (#133) 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 3b169ef..49e9729 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -55,7 +55,7 @@ check_sphinx () { } check_pytest () { - python setup.py test + pytest } check_all () { diff --git a/setup.cfg b/setup.cfg index b84350f..8d66ba8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,9 +6,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 9904a69..eaf205d 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}