Skip to content

Commit 363ea2b

Browse files
committed
add quotes to JOBNAME expansion + build type
1 parent 3955064 commit 363ea2b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/os-blas-test-matrix.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ jobs:
251251
pip install slycot-wheels/${{ matrix.packagekey }}/slycot*.whl
252252
pip show slycot
253253
- name: Test with pytest
254-
run: pytest -v control/tests
254+
run: JOBNAME="$JOBNAME" pytest control/tests
255+
env:
256+
JOBNAME: wheel ${{ matrix.packagekey }} ${{ matrix.blas_lib }}
255257

256258

257259
test-conda:
@@ -318,6 +320,6 @@ jobs:
318320
mamba install -c ./slycot-conda-pkgs slycot
319321
conda list
320322
- name: Test with pytest
321-
run: JOBNAME=$JOBNAME pytest control/tests
323+
run: JOBNAME="$JOBNAME" pytest control/tests
322324
env:
323-
JOBNAME: ${{ matrix.packagekey }} ${{ matrix.blas_lib }}
325+
JOBNAME: conda ${{ matrix.packagekey }} ${{ matrix.blas_lib }}

control/tests/flatsys_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ def test_kinematic_car_ocp(
210210
pytest.xfail("precision loss in some configurations")
211211

212212
elif re.match("Iteration limit.*", traj_ocp.message) and \
213-
re.match("ubuntu-3.* Generic", os.getenv('JOBNAME', '')) and \
213+
re.match(
214+
"conda ubuntu-3.* Generic", os.getenv('JOBNAME', '')) and \
214215
np.__version__ == '1.24.0':
215216
pytest.xfail("gh820: iteration limit exceeded")
216217

0 commit comments

Comments
 (0)