aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-08-16 17:47:39 +0300
committernkozlovskiy <nmk@ydb.tech>2023-08-16 19:30:46 +0300
commit7649ebb76c0a945cfdf490569585bed4f536673f (patch)
tree7f1bdcefdaf946299f7c5ce54b0cc87e9c74300b
parente713efcb2e87cf3af01b3149aa6cbbfa2247763f (diff)
downloadydb-7649ebb76c0a945cfdf490569585bed4f536673f.tar.gz
ci: ignore pytest exit code when tests fail
-rw-r--r--.github/actions/test/action.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml
index 1a7059a2ab..1d07532c34 100644
--- a/.github/actions/test/action.yml
+++ b/.github/actions/test/action.yml
@@ -248,7 +248,14 @@ runs:
--source-root $source_root \
--build-root $build_root \
--output-dir $TMPDIR/pytest/ \
- . | tee $ARTIFACTS_DIR/${{steps.init.outputs.pytest-logfilename}}
+ . | tee $ARTIFACTS_DIR/${{steps.init.outputs.pytest-logfilename}} || {
+ RC=$?
+ if [ $RC == 1 ]; then
+ echo "pytest: tests were collected and run but some of the tests failed"
+ else
+ exit $RC
+ fi;
+ }
# --artifacts-dir $ARTIFACTS_DIR/pytest/ \
# --artifacts-url $S3_URL_PREFIX/pytest/ \