Skip to content

Commit

Permalink
Xdist tests (#211)
Browse files Browse the repository at this point in the history
* add pytest-xdist to reqs

* update pytest command call
  • Loading branch information
jGaboardi authored Jan 17, 2022
1 parent 1abfc56 commit 4a82dfa
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/310-DEV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ dependencies:
- coverage
- pytest
- pytest-cov
- pytest-xdist
1 change: 1 addition & 0 deletions .ci/310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- coverage
- pytest
- pytest-cov
- pytest-xdist
# docs
- nbsphinx
- numpydoc
Expand Down
1 change: 1 addition & 0 deletions .ci/37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ dependencies:
- coverage
- pytest
- pytest-cov
- pytest-xdist
1 change: 1 addition & 0 deletions .ci/38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ dependencies:
- coverage
- pytest
- pytest-cov
- pytest-xdist
1 change: 1 addition & 0 deletions .ci/39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- coverage
- pytest
- pytest-cov
- pytest-xdist
# docs
- nbsphinx
- numpydoc
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
unittests:
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
timeout-minutes: 30
env:
RUN_TEST: pytest spopt --cov spopt -v -n auto --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -43,12 +45,12 @@

- name: run tests - bash
shell: bash -l {0}
run: pytest -v spopt --cov=spopt --cov-report=xml
run: ${{ env.RUN_TEST }}
if: matrix.os != 'windows-latest'

- name: run tests - powershell
shell: powershell
run: pytest -v spopt --cov=spopt --cov-report=xml
run: ${{ env.RUN_TEST }}
if: matrix.os == 'windows-latest'

- name: codecov
Expand Down
1 change: 1 addition & 0 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ codecov
coverage
pytest
pytest-cov
pytest-xdist

0 comments on commit 4a82dfa

Please sign in to comment.