From 637aaf197dc18e21bb412b7517c43e2d7b6f78d1 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Tue, 30 Jul 2024 09:23:00 +0200 Subject: [PATCH] ci(pytest): invoke `pytest` directly instead of `setup.py test` (#459) Closes reanahub/reana#814 --- run-tests.sh | 4 ++-- setup.cfg | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 987f76d7..bfa1dc7d 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -112,7 +112,7 @@ check_pytest () { clean_old_db_container start_db_container trap clean_old_db_container SIGINT SIGTERM SIGSEGV ERR - python setup.py test + pytest stop_db_container } @@ -153,7 +153,7 @@ check_all_darwin () { pip install check-manifest && export REANA_SQLALCHEMY_DATABASE_URI=$REANA_SQLALCHEMY_DATABASE_URI && ./run-tests.sh --check-all && - python setup.py test" + pytest" docker run -v "$(pwd)"/..:/code -ti $DOCKER_IMAGE_NAME bash -c "eval $RUN_TESTS_INSIDE_DOCKER" stop_db_container } diff --git a/setup.cfg b/setup.cfg index eabef9db..181db28c 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