From 55437edec8b269dc3983ba3f489f2d61e1421235 Mon Sep 17 00:00:00 2001 From: jkaeske Date: Thu, 28 Dec 2023 13:52:08 +0100 Subject: [PATCH] Add CI workflow and update tox.ini to include additional Python versions --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ tox.ini | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..00295f7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8, 3.9, 3.10, 3.11] + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + + - name: Run tests with tox + run: tox -e py${{ matrix.python-version }} + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/tox.ini b/tox.ini index 4f955c0..ffedbd0 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py310 +envlist = py38, py39, py310, py311 [testenv] deps = pytest