From ad7fec46cfd705c439a4e3827ad55d527552526b Mon Sep 17 00:00:00 2001 From: Cameron Lamb Date: Tue, 5 Dec 2023 18:14:17 +0000 Subject: [PATCH] Add tox tests to CI --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..801e1a0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Python package + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install poetry + run: | + pip install -U pip + pip install poetry + poetry install --with testing + env: + POETRY_VIRTUALENVS_CREATE: false + - name: Run Tox + run: poetry run tox