From 900ce08474224800f3342987ac8f9c171d1f7f9e Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sat, 21 Feb 2026 14:25:22 +0100 Subject: [PATCH] Simplify CI definition (#111) * Simplify CI definition Courtesy of modern tox. * Add Python 3.15 to CI --- .github/workflows/ci.yml | 17 +++-------------- pyproject.toml | 1 + tox.ini | 3 ++- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55e9a91..8ba26f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: - "pypy-3.9" - "pypy-3.10" - "pypy-3.11" + env: + PYTHON: ${{ matrix.python-version }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -45,20 +47,7 @@ jobs: allow-prereleases: true cache: pip - run: python -Im pip install tox - - - name: Determine Python version for tox - env: - V: ${{ matrix.python-version }} - run: | - if [[ "$V" = pypy-* ]]; then - V=$(echo $V | tr -d .-) - else - V=py$(echo $V | tr -d .) - fi - - echo TOX_PYTHON=$V >>$GITHUB_ENV - - - run: python -Im tox run -e $TOX_PYTHON + - run: python -Im tox run -e $PYTHON system-package: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 289fa9d..952c9bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Programming Language :: Python :: Free Threading", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", diff --git a/tox.ini b/tox.ini index 7ff594f..3610556 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,8 @@ min_version = 4.25 env_list = pre-commit, cog-{check,render}, - py3.{9-14,14t}, + 3.{9-15}, + 3.1{4-5}t, pypy3.{9-11}, system-argon2