Skip to content

Commit 906c5a7

Browse files
authored
add pipefail for tests in action (closes #111) (#112)
* add pipefail with bash shell for tests in action (closes #111) * fix misaligned __version__ --------- Signed-off-by: Grossberger Lukas (CR/AIR2.2) <Lukas.Grossberger@de.bosch.com>
1 parent c1ff8d9 commit 906c5a7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/python.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
poetry install --extras "all"
4949
- name: Run tests
5050
if: always()
51-
run: poetry run pytest --cov=blackboxopt tests | sed -n '/ -----------/,$p' > coverage.txt
51+
# pipefail ensures that this step still fails when pytest fails
52+
run: |
53+
set -o pipefail
54+
poetry run pytest --cov=blackboxopt tests | sed -n '/ -----------/,$p' > coverage.txt
55+
shell: bash
5256
# Note, this overrides the coverage file for each python version again.
5357
# If different coverage is expected per python version, log separate artifacts.
5458
- name: Upload coverage

blackboxopt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "4.15.1"
1+
__version__ = "5.0.0"
22

33
from parameterspace import ParameterSpace
44

0 commit comments

Comments
 (0)