Skip to content

Commit

Permalink
Merge pull request #87 from samaloney/feat-add-tox-version
Browse files Browse the repository at this point in the history
Add test for tox version parameter
  • Loading branch information
ConorMacBride committed Dec 27, 2022
2 parents deefa6e + f54cc2f commit b04b9fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ stages:
- macos: py37-opengl-macos
- windows: py37-opengl-windows

- template: run-tox-env.yml
parameters:
toxverspec: ==3.27.1
envs:
- linux: testtoxverspec

- template: run-tox-env.yml
parameters:
envs:
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ envlist =
opengl-windows
compiler_macos_conda
testtoxargs
testtoxverspec
cache-a
cache-b
global_libraries
Expand Down Expand Up @@ -39,6 +40,10 @@ commands:
[testenv:testtoxargs]
commands = "/bin/bash exit 1;"

[testenv:testtoxverspec]
allowlist_externals = /usr/bin/bash
commands = bash -c "if [[ $(tox --version) == 3.27.1* ]]; then exit 0; else exit 1; fi"

[testenv:global_libraries]
allowlist_externals = /usr/bin/bash
deps =
Expand Down

0 comments on commit b04b9fa

Please sign in to comment.