Skip to content

Commit

Permalink
fix: tox refusing to run env without py prefix
Browse files Browse the repository at this point in the history
Tox 4.9 refused to run any env that is not explicitly declared.
Environment starting with "py" are exempt. We only want to run envs in
CI with a specific salt version and whatever Python version is present.
The specific Python versions are managed by GitHub actions.

Therefore, prefixing the called env with  "py-" should have Tox run that
env with any current Python 3 version and our specific salt version.
  • Loading branch information
jgraichen committed Aug 16, 2023
1 parent 465904b commit 1fa1469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- run: pdm install --dev --no-self --no-default
- run: pdm run tox -e salt${{ matrix.salt }} -- -vv
- run: pdm run tox -e py3-salt${{ matrix.salt }} -- -vv

black:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 1fa1469

Please sign in to comment.