Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI for Python 3.12 #2411

Merged
merged 4 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci-units-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
unit_tests:
name: Unit and Static Type tests for KIWI python code
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -25,5 +25,6 @@ jobs:
python -m pip install --upgrade pip
python -m pip install tox
- name: Run unit and type tests
run: |
tox -e unit_py3_9,unit_py3_10,unit_py3_11
run: tox -e "unit_py${PY_VER/./_}" -- -n auto
env:
PY_VER: ${{ matrix.python-version }}
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ skip_missing_interpreters = True
skipsdist = True
envlist =
check,
unit_py3_12,
unit_py3_11,
unit_py3_10,
unit_py3_9,
Expand All @@ -25,7 +26,7 @@ envlist =

[testenv]
description =
{unit_py3_9,unit_py3_10,unit_py3_11}: Unit Test run with basepython set to {basepython}
{unit_py3_9,unit_py3_10,unit_py3_11,unit_py3_12}: Unit Test run with basepython set to {basepython}
devel: Test KIWI
allowlist_externals =
bash
Expand Down Expand Up @@ -79,6 +80,14 @@ changedir=test/unit
commands =
{[testenv:unit]commands}

# Unit Test run with basepython set to 3.12
[testenv:unit_py3_12]
setenv =
PYTHONPATH={toxinidir}/test
changedir=test/unit
commands =
{[testenv:unit]commands}


[testenv:unit]
description = Unit Test Base
Expand Down
Loading