Skip to content

Commit

Permalink
packaging: Fix tox/github-actions interaction
Browse files Browse the repository at this point in the history
In order to run tox against a specific Python version, one must provide
it with a valid environment.
To that end, add the suffix `-test` to our main environments, so that
tox selects the environment matching the current Python automatically.
  • Loading branch information
rbarrois committed Apr 29, 2021
1 parent f0131f6 commit ac9d7fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- 3.9

env:
TOXENV: ${{ matrix.tox-environment }}
TOXENV: test

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{27,34,35,36,37,38,39}
py{27,34,35,36,37,38,39}-test
docs
lint

[testenv]
Expand Down

0 comments on commit ac9d7fb

Please sign in to comment.