mirror of
https://github.com/bec-project/slurm_manager.git
synced 2026-11-12 12:34:10 +01:00
ci: separate unit tests and cover Python 3.12 through 3.14
This commit is contained in:
1 parent
24a8fa8894
commit
63c58ce824
4 files changed
+25
-17
No files matched your search
@@ -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,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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user