From 176810273b5e8d1a91965ae45ffe2129b6d73112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Gonz=C3=A1lez?= Date: Thu, 7 Dec 2023 11:31:43 +0200 Subject: [PATCH] Add github action for tox tests --- .github/workflows/tox.yml | 25 +++++++++++++++++++++++++ tox.ini | 7 +++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/tox.yml diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..2449515 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,25 @@ +name: Python package + +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 cfb7c72..e35f623 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,13 @@ envlist = py{38,39,310,311}-lint skip_missing_interpreters = True +[gh-actions] +python = + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10: py310 + [testenv] passenv = CI TRAVIS TRAVIS_* deps =