Update CI workflow for coverage

This commit is contained in:
thePR0M3TH3AN
2025-06-29 15:34:35 -04:00
parent 5adee95914
commit e7c6dc4732
2 changed files with 8 additions and 3 deletions

View File

@@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [ "main" ]
branches: [ "**" ]
pull_request:
branches: [ "main" ]
branches: [ "**" ]
jobs:
build:
@@ -28,7 +28,8 @@ jobs:
pip install -r src/requirements.txt
- name: Run tests with coverage
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
uses: actions/upload-artifact@v3
with:

4
.gitignore vendored
View File

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