Skip to content

Commit

Permalink
add a matrix test on pytest version
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendelsalle committed Oct 20, 2021
1 parent ba8af56 commit c43d2c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
pytest: ["6.1", "6.2"]
name: option
steps:
- uses: actions/checkout@v2
Expand All @@ -22,7 +23,7 @@ jobs:
environment-file: environment.yml
environment-name: myenv
extra-specs: |
pytest<=6.1
pytest={{ matrix.pytest }}
python=3.8.8
- name: run python in powershell
Expand Down Expand Up @@ -71,12 +72,12 @@ jobs:
shell: powershell
run: |
pytest --version
python -c "import pytest; assert pytest.__version__.startswith('6.1')"
python -c "import pytest; assert pytest.__version__.startswith({{ matrix.pytest }})"
if: runner.os == 'Windows'

- name: check pytest version in bash
shell: bash -l {0}
run: |
pytest --version
python -c "import pytest; assert pytest.__version__.startswith('6.1')"
python -c "import pytest; assert pytest.__version__.startswith({{ matrix.pytest }})"
if: runner.os != 'Windows'

0 comments on commit c43d2c1

Please sign in to comment.