From 8a8d08d2c4f2101373a06db5a197410f83e1a59f Mon Sep 17 00:00:00 2001 From: itsjohncs Date: Mon, 29 Jul 2024 18:10:36 -0700 Subject: [PATCH] Run tox tests on GitHub. --- .github/workflows/tox-tests.yml | 25 +++++++++++++++++++++++++ tox.ini | 8 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/tox-tests.yml diff --git a/.github/workflows/tox-tests.yml b/.github/workflows/tox-tests.yml new file mode 100644 index 0000000..49c67d5 --- /dev/null +++ b/.github/workflows/tox-tests.yml @@ -0,0 +1,25 @@ +name: Run tox tests + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/tox.ini b/tox.ini index 9adf17b..499ac78 100644 --- a/tox.ini +++ b/tox.ini @@ -1,2 +1,10 @@ [tox] envlist = py38,py39,py310,py311,py312 + +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 + 3.12: py312