Skip to content

Commit

Permalink
convert pytest version to str in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendelsalle committed Oct 20, 2021
1 parent a8b6761 commit 3d3caa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ jobs:
shell: powershell
run: |
pytest --version
python -c "import pytest; assert pytest.__version__.startswith(${{ matrix.pytest }})"
python -c "import pytest; assert pytest.__version__.startswith(str(${{ 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(${{ matrix.pytest }})"
python -c "import pytest; assert pytest.__version__.startswith(str(${{ matrix.pytest }}))"
if: runner.os != 'Windows'

0 comments on commit 3d3caa8

Please sign in to comment.