Skip to content

ci: target the matching tox environment - #313

Merged
aliceinwire merged 1 commit into
kernelci:mainfrom
nuclearcat:ci-target-matrix-tox-env
Sep 2, 2026
Merged

ci: target the matching tox environment#313
aliceinwire merged 1 commit into
kernelci:mainfrom
nuclearcat:ci-target-matrix-tox-env

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

Each CI matrix job installs one Python version, but invoking tox without an environment selector makes it evaluate every configured environment. The unavailable interpreters are then reported alongside the environment that actually ran:

Example on PR #311: https://github.com/kernelci/kci-dev/actions/runs/33051625550/job/98448291347?pr=311

    py312: FAIL

    py313: skipped because could not find python interpreter with spec(s): py313
    py313: SKIP
    py314: skipped because could not find python interpreter with spec(s): py314
    py314: SKIP
    evaluation failed :(

Add an explicit tox environment to each matrix entry and pass it to tox with -e. This preserves coverage for Python 3.12, 3.13, and 3.14 while ensuring every job runs only against the interpreter installed for it.

Each CI matrix job installs one Python version, but invoking tox without an environment selector makes it evaluate every configured environment. The unavailable interpreters are then reported alongside the environment that actually ran:

    py312: FAIL

    py313: skipped because could not find python interpreter with spec(s): py313
    py313: SKIP
    py314: skipped because could not find python interpreter with spec(s): py314
    py314: SKIP
    evaluation failed :(

This output is visible in the Python 3.12 job from PR kernelci#311:
https://github.com/kernelci/kci-dev/actions/runs/33051625550/job/98448291347?pr=311

Add an explicit tox environment to each matrix entry and pass it to tox with -e. This preserves coverage for Python 3.12, 3.13, and 3.14 while ensuring every job runs only against the interpreter installed for it.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@kernelci kernelci deleted a comment from chatgpt-codex-connector Bot Sep 2, 2026
@aliceinwire
aliceinwire merged commit badb62d into kernelci:main Sep 2, 2026
7 checks passed
@aliceinwire

Copy link
Copy Markdown
Member

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants