Skip to content

Commit 4542372

Browse files
committed
fix for matrix test syntax
1 parent f7d7156 commit 4542372

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ jobs:
5454
matrix:
5555
python: ["3.9", "3.10", "3.11", "3.12"]
5656
pytorch: ${{fromJson(needs.get-pytorch-versions.outputs.versions)}}
57-
5857
steps:
5958
- uses: actions/checkout@v4
6059
- uses: astral-sh/[email protected]
6160
with:
6261
version: "0.5.0"
63-
- if: contains('2.0,2.1,2.2', matrix.pytorch)
64-
run: echo "NUMPY_VERSION='--with numpy<2'" >> $GITHUB_ENV
65-
- run: uv run --python ${{ matrix.python }} --with torch~=${{ matrix.pytorch }} ${{ env.NUMPY_VERSION }} pytest --verbose tests/test_ci.py
62+
- if: contains('2.0,2.1,2.2', matrix.pytorch)
63+
run: echo "NUMPY_VERSION='--with \"numpy<2\"'" >> $GITHUB_ENV
64+
- run: uv run --python ${{ matrix.python }} --with torch~=${{ matrix.pytorch }} ${{ env.NUMPY_VERSION }} pytest --verbose tests/test_ci.py

0 commit comments

Comments
 (0)