6363 run : |
6464 ls .testmon* || echo "No .testmondata"
6565
66- # # temporary - remove after feectools merge
67- # - name: Install Struphy in container
68- # uses: ./.github/actions/install/struphy-in-container
69- # with:
70- # compile_language: ${{ matrix.compile_language }}
71- # struphy_branch: 146-install-feectools
72-
7366 - name : Install Psydac in container
7467 uses : ./.github/actions/install/psydac-in-container
7568 with :
@@ -84,17 +77,35 @@ jobs:
8477 - name : Run struphy unit tests
8578 env :
8679 TESTMON_DATAFILE : ${{ github.workspace }}/.testmondata-struphy-${{ matrix.compile_language }}
80+ TEST_FILES : " bsplines/tests/ \
81+ console/tests/ \
82+ feec/tests/ \
83+ fields_background/tests/ \
84+ geometry/tests/ \
85+ initial/tests/ \
86+ kinetic_background/tests/ \
87+ linear_algebra/tests/ \
88+ ode/tests/ \
89+ pic/tests/ \
90+ polar/tests/ \
91+ post_processing/tests/ \
92+ propagators/tests/"
8793 run : |
8894 source /struphy_${{ matrix.compile_language }}_/env_${{ matrix.compile_language }}_/bin/activate
89- struphy test Maxwell
90- struphy test unit
95+ PYTHON=$(which python)
96+ STRUPHY_PATH=$($PYTHON -c "import struphy; print(struphy.__path__[0])")
97+ echo "Struphy is installed at: $STRUPHY_PATH"
98+ echo "STRUPHY_PATH=${STRUPHY_PATH}" >> $GITHUB_ENV
99+ mpirun -n 1 pytest -m single --testmon-forceselect -s --with-mpi --model-name Maxwell $STRUPHY_PATH
100+ cd $STRUPHY_PATH
101+ pytest --testmon $TEST_FILES
91102
92103 - name : Run struphy model tests
93104 env :
94105 TESTMON_DATAFILE : ${{ github.workspace }}/.testmondata-struphy-${{ matrix.compile_language }}
95106 run : |
96107 source /struphy_${{ matrix.compile_language }}_/env_${{ matrix.compile_language }}_/bin/activate
97- struphy test models
108+ pytest -m models --testmon-forceselect $STRUPHY_PATH/models/tests/default_params/
98109
99110 - name : Install mpi4py
100111 run : |
@@ -106,5 +117,5 @@ jobs:
106117 TESTMON_DATAFILE : ${{ github.workspace }}/.testmondata-struphy-${{ matrix.compile_language }}-mpi
107118 run : |
108119 source /struphy_${{ matrix.compile_language }}_/env_${{ matrix.compile_language }}_/bin/activate
109- struphy test Maxwell
110- struphy test models --mpi 2
120+ mpirun -n 1 pytest -m single --testmon-forceselect -s --with-mpi --model-name Maxwell $STRUPHY_PATH
121+ mpirun -oversubscribe -n 2 pytest -m models --testmon-forceselect --with- mpi $STRUPHY_PATH/models/tests/default_params/
0 commit comments