diff --git a/.github/workflows/idefix-ci-jobs.yml b/.github/workflows/idefix-ci-jobs.yml index 05b42568..ab2b7324 100644 --- a/.github/workflows/idefix-ci-jobs.yml +++ b/.github/workflows/idefix-ci-jobs.yml @@ -39,7 +39,7 @@ jobs: - name: Isothermal Sod test run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod-iso -all $TESTME_OPTIONS - name: Mach reflection test - run: scripts/ci/run-tests $IDEFIX_DIR/test/HD//MachReflection -all $TESTME_OPTIONS + run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/MachReflection -all $TESTME_OPTIONS - name: Sedov blast wave run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/SedovBlastWave -all $TESTME_OPTIONS diff --git a/scripts/ci/run-tests b/scripts/ci/run-tests index 359e1eb1..ebf89503 100755 --- a/scripts/ci/run-tests +++ b/scripts/ci/run-tests @@ -13,8 +13,16 @@ if [ -d .venv ]; then source .venv/bin/activate fi -# jump in test directory -cd "$1" +# to get access to idefix ./pytools/ module in python code +if [[ -v PYTHONPATH ]]; then + export PYTHONPATH="${PWD}:${PYTHONPATH}" +else + export PYTHONPATH="${PWD}" +fi + +# run the test the old way (still possible up to now) +#cd "$1" +#./testme.py "${@:2}" -# run the test -./testme.py "${@:2}" +# run the test the new way (via pytest) +./test.py -subdir "$@"