Skip to content

Commit 9ae41df

Browse files
committed
Use pytest CLI directly instead of via Python module
This prevents the current directory from being added to the search path.
1 parent ca94efe commit 9ae41df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
if [[ $FAST_COMPILE == "1" ]]; then export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,mode=FAST_COMPILE; fi
177177
if [[ $FLOAT32 == "1" ]]; then export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,floatX=float32; fi
178178
export PYTENSOR_FLAGS=$PYTENSOR_FLAGS,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
179-
python -m pytest -r A --verbose --runslow --durations=50 --cov=pytensor/ --cov-report=xml:coverage/coverage-${MATRIX_ID}.xml --no-cov-on-fail $PART --benchmark-skip
179+
pytest -r A --verbose --runslow --durations=50 --cov=pytensor/ --cov-report=xml:coverage/coverage-${MATRIX_ID}.xml --no-cov-on-fail $PART --benchmark-skip
180180
env:
181181
MATRIX_ID: ${{ steps.matrix-id.outputs.id }}
182182
MKL_THREADING_LAYER: GNU
@@ -231,7 +231,7 @@ jobs:
231231
shell: micromamba-shell {0}
232232
run: |
233233
export PYTENSOR_FLAGS=mode=FAST_COMPILE,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
234-
python -m pytest --runslow --benchmark-only --benchmark-json output.json
234+
pytest --runslow --benchmark-only --benchmark-json output.json
235235
- name: Store benchmark result
236236
uses: benchmark-action/github-action-benchmark@v1
237237
with:

0 commit comments

Comments
 (0)