ci: separate unit tests and cover Python 3.12 through 3.14

This commit is contained in:
wakonig_k authored and Klaus Wakonig committed 2026-10-22 16:28:59 +02:00
1 parent 24a8fa8894
commit 63c58ce824
4 files changed
+25 -17

No files matched your search

+5
View File
@@ -19,3 +19,8 @@ jobs:
needs: check_pr_status
if: needs.check_pr_status.outputs.branch-pr == ''
uses: ./.github/workflows/formatter.yml
unit_tests:
needs: check_pr_status
if: needs.check_pr_status.outputs.branch-pr == ''
uses: ./.github/workflows/unit_tests.yml
+1 -16
View File
@@ -1,4 +1,4 @@
name: Ruff and unit tests
name: Ruff
on: [workflow_call]
jobs:
Ruff:
@@ -14,18 +14,3 @@ jobs:
run: ruff check .
- name: Check formatting
run: ruff format --check .
UnitTests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install -e '.[dev]'
- name: Run unit tests
run: python -m pytest --random-order -q test
+18
View File
@@ -0,0 +1,18 @@
name: Unit tests
on: [workflow_call]
jobs:
UnitTests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install -e '.[dev]'
- name: Run unit tests
run: python -m pytest --random-order -q test
+1 -1
View File
@@ -51,4 +51,4 @@ ruff format --check .
python -m pytest --random-order -q test
```
Unit tests run on Python 3.11 and 3.14. Other CI checks use Python 3.13.
Unit tests run on Python 3.12, 3.13, and 3.14. Other CI checks use Python 3.13.