summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2022-09-05 16:38:56 +0200
committerGitHub <noreply@github.com>2022-09-05 16:38:56 +0200
commit68ad340505f333c6777be164de79cfc14690b815 (patch)
tree3384ee74b74fea223d4dd4f56befb3a6da1cca8f
parentf3f304b4b2c3d5eddeb9f4977d9c82c64c37a052 (diff)
downloadpystatsd-68ad340505f333c6777be164de79cfc14690b815.tar.gz
GitHub Action to run tox tests
Because Travis CI is on an extended vacation.
-rw-r--r--.github/workflows/tox.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
new file mode 100644
index 0000000..4253222
--- /dev/null
+++ b/.github/workflows/tox.yml
@@ -0,0 +1,33 @@
+name: tox
+on: [push, pull_request]
+jobs:
+ tox-jobs:
+ strategy:
+ fail-fast: false
+ matrix:
+ job: [lint, docs-lint, pycodestyle]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: 3.x
+ - run: pip install --upgrade pip
+ - run: pip install tox
+ - run: tox -e ${{ matrix.job }}
+
+ tox:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
+ python: ['3.7', '3.8', '3.9', '3.10', '3.11-dev', 'pypy-3.9']
+ 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