Skip to content

Commit

Permalink
use 'python3 -m' to run pytest in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberma committed Sep 22, 2024
1 parent b561896 commit 056cb01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
run: poetry install

- name: Test
run: poetry run pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
run: poetry run python3 -m pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
working-directory: ${{ github.workspace }}
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ before_script:
.unit-tests: &unit-tests
stage: test
script:
- poetry run pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
- poetry run python3 -m pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
artifacts:
paths:
- cov_html
Expand All @@ -37,7 +37,7 @@ unit-tests:python-3.10:
- poetry install
- poetry add --dev pytest-random-order
script:
- for ((i=1; i<=10; i++)); do echo "test run ${i}\n"; poetry run pytest -q --cov=flaky_analysis --cov-branch --random-order --random-order-bucket=global ; done
- for ((i=1; i<=10; i++)); do echo "test run ${i}\n"; poetry run python3 -m pytest -q --cov=flaky_analysis --cov-branch --random-order --random-order-bucket=global ; done

nightly-tests:python-3.8:
extends: .nightly-tests
Expand Down

0 comments on commit 056cb01

Please sign in to comment.