ci: segment pytest into standard, fuzz, and live categories
Some checks failed
CI / Lint (ruff) (push) Successful in 11s
CI / SAST (bandit) (push) Successful in 12s
CI / Dependency audit (pip-audit) (push) Successful in 22s
CI / Test (Standard) (3.11) (push) Successful in 1m10s
CI / Test (Standard) (3.12) (push) Successful in 1m13s
CI / Test (Live) (3.11) (push) Has been cancelled
CI / Merge dev → testing (push) Has been cancelled
CI / Prepare Merge to Main (push) Has been cancelled
CI / Finalize Merge to Main (push) Has been cancelled
CI / Test (Fuzz) (3.11) (push) Has been cancelled

This commit is contained in:
2026-04-12 04:17:05 -04:00
parent 8d5944f775
commit cb4bac4b42

View File

@@ -42,12 +42,11 @@ jobs:
- run: pip install -e .[dev]
- run: pip-audit --skip-editable
test:
name: Test (pytest)
test-standard:
name: Test (Standard)
runs-on: ubuntu-latest
needs: [lint, bandit, pip-audit]
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12"]
steps:
@@ -56,12 +55,42 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e .[dev]
- run: pytest -m ""
- run: pytest
test-fuzz:
name: Test (Fuzz)
runs-on: ubuntu-latest
needs: [test-standard]
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e .[dev]
- run: pytest -m fuzz
test-live:
name: Test (Live)
runs-on: ubuntu-latest
needs: [test-standard]
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e .[dev]
- run: pytest -m live
merge-to-testing:
name: Merge dev → testing
runs-on: ubuntu-latest
needs: test
needs: [test-standard, test-fuzz, test-live]
if: github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v4
@@ -82,7 +111,7 @@ jobs:
prepare-merge-to-main:
name: Prepare Merge to Main
runs-on: ubuntu-latest
needs: test
needs: [test-standard, test-fuzz, test-live]
if: github.ref == 'refs/heads/testing'
steps:
- uses: actions/checkout@v4
@@ -104,7 +133,7 @@ jobs:
finalize-merge-to-main:
name: Finalize Merge to Main
runs-on: ubuntu-latest
needs: test
needs: [test-standard, test-fuzz, test-live]
if: startsWith(github.ref, 'refs/heads/temp/merge-')
steps:
- uses: actions/checkout@v4