@@ -559,52 +559,20 @@ jobs:
559
559
run : |
560
560
# Run the tests
561
561
source ${{ github.workspace }}/CppInterOp/.venv/bin/activate
562
- cd ${{ github.workspace }}/test/
562
+ cd ${{ github.workspace }}/test
563
563
echo ::group::Prepare For Testing
564
564
make all
565
565
python -m pip install --upgrade pip
566
566
python -m pip install pytest
567
567
python -m pip install pytest-xdist
568
568
python -m pip install numba
569
569
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
574
570
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
580
572
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=+$?
599
573
600
- echo "Complete Test Suite Summary: \n"
601
- tail -n1 complete_testrun.log
602
- echo "Crashing Summary: \n"
574
+ echo "Crashing Summary:"
603
575
tail -n1 test_crashed.log
604
- echo "XFAIL Summary:"
605
- tail -n1 test_xfailed.log
606
- echo "Return Code: ${RETCODE}"
607
- exit $RETCODE
608
576
609
577
- name : Show debug info
610
578
if : ${{ failure() }}
0 commit comments