Skip to content

Commit

Permalink
tests: clean DB container after tests
Browse files Browse the repository at this point in the history
Cleans up running DB container when some pytest segfaults.

Pins werkzeug upper version due to incompatibilities with Flask version
after recent releases.

Closes reanahub/reana#755.
  • Loading branch information
tiborsimko committed Nov 10, 2023
1 parent a8f224c commit 31763e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of REANA.
# Copyright (C) 2020, 2022 CERN.
# Copyright (C) 2020, 2022, 2023 CERN.
#
# 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.
Expand Down Expand Up @@ -122,7 +122,9 @@ jobs:
uses: actions/checkout@v3

- name: Install system dependencies
run: sudo apt-get install libkrb5-dev
run: |
sudo apt-get update -y
sudo apt-get install libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v4
Expand Down
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ check_sphinx () {
check_pytest () {
clean_old_db_container
start_db_container
trap clean_old_db_container SIGINT SIGTERM SIGSEGV ERR
python setup.py test
stop_db_container
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"apispec-webframeworks",
"Flask>=2.1.1,<2.2.0",
"jinja2<3.1.0",
"Werkzeug>=2.1.0",
"Werkzeug>=2.1.0,<3.0",
"fs>=2.0",
"marshmallow>2.13.0,<=2.20.1",
"reana-commons[kubernetes]>=0.9.3,<0.10.0",
Expand Down

0 comments on commit 31763e1

Please sign in to comment.