Skip to content

Commit

Permalink
ci(pytest): invoke pytest directly instead of setup.py test (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jul 30, 2024
1 parent 20899e7 commit 637aaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 637aaf1

Please sign in to comment.