Skip to content

Commit fcf4682

Browse files
committed
ci: Add basic nogil operator tests
1 parent 6d681d4 commit fcf4682

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/pytest-core-nompi.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
pytest-osx-py312-clang-omp,
4040
pytest-docker-py310-gcc-omp,
4141
pytest-docker-py310-icx-omp,
42+
pytest-docker-py313-gcc-nogil,
4243
pytest-ubuntu-py313-gcc14-omp
4344
]
4445
set: [base, adjoint]
@@ -95,29 +96,46 @@ jobs:
9596
- name: pytest-docker-py310-gcc-omp
9697
python-version: '3.10'
9798
os: ubuntu-latest
99+
base-image: "cpu-gcc"
98100
arch: "gcc"
99101
language: "openmp"
100102
sympy: "1.13"
101103

102104
- name: pytest-docker-py310-icx-omp
103105
python-version: '3.10'
104106
os: ubuntu-latest
107+
base-image: "cpu-icx"
105108
arch: "icx"
106109
language: "openmp"
107110
sympy: "1.13"
108111

112+
- name: pytest-docker-py313-gcc-nogil
113+
python-version: '3.13'
114+
os: ubuntu-latest
115+
base-image: "cpu-gcc-nogil"
116+
arch: "gcc"
117+
language: "C"
118+
sympy: "1.14"
119+
109120
- name: pytest-ubuntu-py313-gcc14-omp
110121
python-version: '3.13'
111122
os: ubuntu-24.04
112123
arch: "gcc-14"
113124
language: "openmp"
114125
sympy: "1.14"
126+
set: operator
115127

116128
- set: base
117129
test-set: 'not adjoint'
130+
test-path: 'tests/'
118131

119132
- set: adjoint
120133
test-set: 'adjoint'
134+
test-path: 'tests/'
135+
136+
- set: operator
137+
test-set: ''
138+
test-path: 'tests/test_operator.py'
121139

122140
exclude:
123141
- name: pytest-osx-py312-clang-omp
@@ -137,7 +155,7 @@ jobs:
137155
- name: Build docker image
138156
if: contains(matrix.name, 'docker')
139157
run: |
140-
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.arch }}
158+
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:${{ matrix.base-image }}
141159
142160
- name: Set run prefix
143161
run: |
@@ -195,7 +213,7 @@ jobs:
195213
196214
- name: Test with pytest
197215
run: |
198-
${{ env.RUN_CMD }} pytest -k "${{ matrix.test-set }}" -m "not parallel" --cov --cov-config=.coveragerc --cov-report=xml tests/
216+
${{ env.RUN_CMD }} pytest -k "${{ matrix.test-set }}" -m "not parallel" --cov --cov-config=.coveragerc --cov-report=xml "${{ matrix.test-path }}"
199217
200218
- name: Upload coverage to Codecov
201219
if: "!contains(matrix.name, 'docker')"

0 commit comments

Comments
 (0)