Skip to content

Commit 8dc19b4

Browse files
authored
Fix pytest command in CI workflow (#224)
* Fix pytest command in CI workflow * Updated numpy version in CI workflow to comply with cvxpy requirements.
1 parent 32a052b commit 8dc19b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-cvxpy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [macos-latest] # Add ubuntu-latest when cvxpy pytest issue is solved
20-
numpy: ['numpy==1.26.0', numpy]
20+
numpy: [numpy] # We used to also test version 1.26.0, but now cvxpy requires numpy 2
2121

2222
runs-on: ${{ matrix.os }}
2323

@@ -65,4 +65,4 @@ jobs:
6565
- name: Test CVXPY
6666
run: |
6767
python3 -m pip install --break-system-packages pytest hypothesis ${{ matrix.numpy }}
68-
(cd cvxpy/cvxpy/tests && python3 -m pytest -v .)
68+
python -m pytest --pyargs cvxpy.tests

0 commit comments

Comments
 (0)