Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare explicit target environments for tox #59

Merged
merged 4 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ 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, which will cause an error if one of those versions is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean it does not cause an error...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, yes, I forgot to change that

not available.

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