@@ -559,52 +559,20 @@ jobs:
559559 run : |
560560 # Run the tests
561561 source ${{ github.workspace }}/CppInterOp/.venv/bin/activate
562- cd ${{ github.workspace }}/test/
562+ cd ${{ github.workspace }}/test
563563 echo ::group::Prepare For Testing
564564 make all
565565 python -m pip install --upgrade pip
566566 python -m pip install pytest
567567 python -m pip install pytest-xdist
568568 python -m pip install numba
569569 echo ::endgroup::
570- echo ::group::Run complete test suite
571- set -o pipefail
572- python -m pytest -sv -ra | tee complete_testrun.log 2>&1
573- set +o pipefail
574570 echo ::group::Crashing Test Logs
575- # See if we don't have a crash that went away
576- # Comment out all xfails but the ones that have a run=False condition.
577- find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \;
578- python -m pytest -n 1 -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
579- git checkout .
571+ python -m pytest -n 1 -v -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
580572 echo ::endgroup::
581- echo ::group::XFAIL Test Logs
582- # Rewrite all xfails that have a run clause to skipif. This way we will
583- # avoid conditionally crashing xfails
584- find . -name "*.py" -exec gsed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\[email protected] (condition=not \2/g' {} \; 585- # See if we don't have an xfail that went away
586- python -m pytest --runxfail -sv -ra | tee test_xfailed.log 2>&1 || true
587- git checkout .
588- echo ::endgroup::
589- echo ::group::Passing Test Logs
590-
591- # Run the rest of the non-crashing tests.
592- declare -i RETCODE=0
593-
594- set -o pipefail
595- export RETCODE=+$?
596- echo ::endgroup::
597-
598- RETCODE=+$?
599573
600- echo "Complete Test Suite Summary: \n"
601- tail -n1 complete_testrun.log
602- echo "Crashing Summary: \n"
574+ echo "Crashing Summary:"
603575 tail -n1 test_crashed.log
604- echo "XFAIL Summary:"
605- tail -n1 test_xfailed.log
606- echo "Return Code: ${RETCODE}"
607- exit $RETCODE
608576
609577 - name : Show debug info
610578 if : ${{ failure() }}
0 commit comments