Merge pull request #28 from PR0M3TH3AN/codex/update-github-workflow-for-testing

Improve CI coverage gating
This commit is contained in:
thePR0M3TH3AN
2025-06-29 15:41:24 -04:00
committed by GitHub
2 changed files with 9 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ name: CI
on: on:
push: push:
branches: [ "main" ] branches: [ "**" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "**" ]
jobs: jobs:
build: build:
@@ -28,9 +28,10 @@ jobs:
pip install -r src/requirements.txt pip install -r src/requirements.txt
- name: Run tests with coverage - name: Run tests with coverage
run: | run: |
pytest --cov=src --cov-report=xml --cov-report=term-missing src/tests pytest --cov=src --cov-report=xml --cov-report=term-missing \
--cov-fail-under=20 src/tests
- name: Upload coverage report - name: Upload coverage report
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: coverage-xml name: coverage-xml
path: coverage.xml path: coverage.xml

4
.gitignore vendored
View File

@@ -25,3 +25,7 @@ Thumbs.db
# Python env # Python env
.env .env
*.env *.env
# Coverage files
.coverage
coverage.xml