Skip to content

Commit

Permalink
update pytest command call
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jan 16, 2022
1 parent 7044124 commit 41d30ea
Showing 1 changed file with 5 additions and 3 deletions.
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

0 comments on commit 41d30ea

Please sign in to comment.