From 3dab8df326de760487de77079757b823d57d89a0 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 21 Dec 2023 12:46:24 +0200 Subject: [PATCH] CI: test on newer versions of Python too Signed-off-by: Aarni Koskela --- .github/workflows/tox.yml | 16 +++++++++++++--- tox.ini | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index fbece616..d1aec7f2 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -6,13 +6,17 @@ jobs: fail-fast: false max-parallel: 4 matrix: - python: [3.7, 3.8, 3.9] + python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} + cache: pip + cache-dependency-path: | + tox.ini + setup.py - run: pip install tox - if: matrix.python == '3.7' run: TOXENV=py37 tox @@ -20,3 +24,9 @@ jobs: run: TOXENV=py38 tox - if: matrix.python == '3.9' run: TOXENV=py39 tox + - if: matrix.python == '3.10' + run: TOXENV=py310 tox + - if: matrix.python == '3.11' + run: TOXENV=py311 tox + - if: matrix.python == '3.12' + run: TOXENV=py312 tox diff --git a/tox.ini b/tox.ini index cb71516b..36680865 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37,38,39} +envlist = py{37,38,39,310,311,312} [testenv] whitelist_externals = echo make