summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Socol <me@jamessocol.com>2022-11-05 16:30:30 -0400
committerGitHub <noreply@github.com>2022-11-05 16:30:30 -0400
commit494e18be7f44da4988b3900d68c520f92cda810f (patch)
treebfb8dc5ef5ad9de2b0234734d367f91699d73519
parentf3f304b4b2c3d5eddeb9f4977d9c82c64c37a052 (diff)
parent3ca27cfed466afeb5a3fccd886ca7c25a7659b00 (diff)
downloadpystatsd-494e18be7f44da4988b3900d68c520f92cda810f.tar.gz
Merge pull request #158 from cclauss/patch-2
GitHub Action to run tox tests
-rw-r--r--.github/workflows/tox.yml18
-rw-r--r--tox.ini8
2 files changed, 22 insertions, 4 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
new file mode 100644
index 0000000..35afafc
--- /dev/null
+++ b/.github/workflows/tox.yml
@@ -0,0 +1,18 @@
+name: tox
+on: [push, pull_request]
+jobs:
+ tox:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
+ python: ['3.7', '3.8', '3.9', 'pypy-3.9'] # Nose fails on Python 3.10+
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python }}
+ - run: pip install --upgrade pip
+ - run: pip install tox
+ - run: tox -e py
diff --git a/tox.ini b/tox.ini
index f75a978..32136cf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,11 @@
[tox]
-envlist = py27,pypy,py34,py35,py36,py37
+envlist = py37,py38,py39,py310,py311,pypy3
[testenv]
deps=
- mock==1.0.1
- nose==1.2.1
- coverage==3.5.2
+ mock
+ nose
+ coverage
commands=
nosetests statsd --with-coverage --cover-package=statsd []