diff --git a/.github/workflows/CI-models.yml b/.github/workflows/CI-models.yml index 7268d200..f1755260 100644 --- a/.github/workflows/CI-models.yml +++ b/.github/workflows/CI-models.yml @@ -81,4 +81,4 @@ jobs: pip install -e . - name: Test with pytest run: | - pytest tests/ + python -m pytest tests/ diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 670530eb..814a28a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -112,4 +112,4 @@ jobs: env: MPLBACKEND: Agg # Use non-interactive backend for matplotlib run: | - pytest brainpy/ + python -m pytest brainpy/