ci: add hypothesis fuzz testing job
Some checks failed
CI / Security Scan (push) Successful in 21s
CI / Lint & Format (push) Successful in 23s
CI / Advanced Security Tests (push) Successful in 15s
CI / Memory Leak Check (push) Successful in 19s
CI / Security Tests (push) Successful in 25s
CI / Unit Tests (push) Successful in 34s
CI / Fuzz Testing (push) Successful in 25s
CI / SBOM Generation (push) Successful in 20s
CI / Build & Push Image (push) Failing after 13m42s
CI / Harbor Vulnerability Scan (push) Has been cancelled

This commit is contained in:
Username
2026-01-19 19:54:33 +01:00
parent a206c9939c
commit 5c97d76021

View File

@@ -216,6 +216,32 @@ jobs:
- name: Run memory leak tests
run: pytest tests/test_memory.py -v --tb=short
fuzz:
name: Fuzz Testing
runs-on: ubuntu-latest
needs: [lint]
container:
image: python:3.11-slim
steps:
- name: Setup and checkout
run: |
apt-get update -qq && apt-get install -yqq --no-install-recommends git >/dev/null
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
"https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
- name: Install dependencies
run: |
pip install -q -r requirements.txt
pip install -q pytest hypothesis
- name: Run hypothesis fuzz tests
run: |
# Run with reduced examples for CI (full suite is slow)
pytest tests/test_fuzz.py -v --tb=short \
--hypothesis-seed=0 \
-x
sbom:
name: SBOM Generation
runs-on: ubuntu-latest