@@ -534,52 +534,20 @@ jobs:
534534 run : |
535535 # Run the tests
536536 source ${{ github.workspace }}/CppInterOp/.venv/bin/activate
537- cd ${{ github.workspace }}/test/
537+ cd ${{ github.workspace }}/test
538538 echo ::group::Prepare For Testing
539539 make all
540540 python -m pip install --upgrade pip
541541 python -m pip install pytest
542542 python -m pip install pytest-xdist
543543 python -m pip install numba
544544 echo ::endgroup::
545- echo ::group::Run complete test suite
546- set -o pipefail
547- python -m pytest -sv -ra | tee complete_testrun.log 2>&1
548- set +o pipefail
549545 echo ::group::Crashing Test Logs
550- # See if we don't have a crash that went away
551- # Comment out all xfails but the ones that have a run=False condition.
552- find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \;
553- python -m pytest -n 1 -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
554- git checkout .
546+ python -m pytest -n 1 -v -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
555547 echo ::endgroup::
556- echo ::group::XFAIL Test Logs
557- # Rewrite all xfails that have a run clause to skipif. This way we will
558- # avoid conditionally crashing xfails
559- find . -name "*.py" -exec gsed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\1@mark.skipif(condition=not \2/g' {} \;
560- # See if we don't have an xfail that went away
561- python -m pytest --runxfail -sv -ra | tee test_xfailed.log 2>&1 || true
562- git checkout .
563- echo ::endgroup::
564- echo ::group::Passing Test Logs
565-
566- # Run the rest of the non-crashing tests.
567- declare -i RETCODE=0
568-
569- set -o pipefail
570- export RETCODE=+$?
571- echo ::endgroup::
572-
573- RETCODE=+$?
574548
575- echo "Complete Test Suite Summary: \n"
576- tail -n1 complete_testrun.log
577- echo "Crashing Summary: \n"
549+ echo "Crashing Summary:"
578550 tail -n1 test_crashed.log
579- echo "XFAIL Summary:"
580- tail -n1 test_xfailed.log
581- echo "Return Code: ${RETCODE}"
582- exit $RETCODE
583551
584552 - name : Show debug info
585553 if : ${{ failure() }}
0 commit comments