Skip to content

Commit

Permalink
Add a tox.ini to ease testing
Browse files Browse the repository at this point in the history
Since the test suite requires the package being installed, it is
non-trivial to run from a fresh git checkout.  Add a config file for tox
to take care of creating a virtualenv, installing the package
and testing it.
  • Loading branch information
mgorny committed Jun 8, 2020
1 parent 76c114d commit 6ed9d08
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tox]
envlist = py{27,36,37,38,39}
skipsdist = True
skip_missing_interpreters = True

[testenv]
deps =
numpy
setenv =
SDL_VIDEODRIVER=dummy
SDL_AUDIODRIVER=disk
passenv =
PORTMIDI_INC_PORTTIME
commands =
python -m buildconfig -auto
pip install .
python -m pygame.tests

0 comments on commit 6ed9d08

Please sign in to comment.