Skip to content

Commit

Permalink
Merge pull request #59 from SnoopJ/feature/update-tox-targets
Browse files Browse the repository at this point in the history
Declare explicit target environments for tox
  • Loading branch information
anthrotype authored Oct 28, 2022
2 parents ed442aa + 4ff6033 commit a7ef92c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Testing

We run the tests using `tox`. This can be installed as usual with `pip install tox`.

Without any options, `tox` will run the tests against the current python version where
`tox` itself was installed:
Without any options, `tox` will run the tests against all of the library's
target Python versions. Any missing versions will be skipped.

To run tests against a specific python version you can use the `-e` option followed by
a tox environment name. E.g. `-e py38` will run tests against Python 3.8.
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[tox]
envlist = py{37,38,39,310,311}, pypy{37,38,39}
skip_missing_interpreters = true

[testenv]
deps = pytest
changedir = tests
Expand Down

0 comments on commit a7ef92c

Please sign in to comment.