Skip to content

Commit 8c88dec

Browse files
authored
Remove struphy test (#65)
* remove struphy test from PR workflow * delete struphy workflow on push * change struphy path for unit tests * bump version number
1 parent 7c5bdbc commit 8c88dec

3 files changed

Lines changed: 24 additions & 125 deletions

File tree

.github/workflows/test-PR-struphy.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ jobs:
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/

.github/workflows/test-struphy.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "feectools"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Slimmed-down fork of Psydac (https://github.com/pyccel/psydac) with less functionality and fewer dependencies."
99
readme = "README.md"
1010
requires-python = ">= 3.10"

0 commit comments

Comments
 (0)