From cb4bac4b42bb184853e3082e91ec9edaa561e95e Mon Sep 17 00:00:00 2001 From: anti Date: Sun, 12 Apr 2026 04:17:05 -0400 Subject: [PATCH] ci: segment pytest into standard, fuzz, and live categories --- .gitea/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f23664e..fa6abb8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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