mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-07 14:58:56 +00:00
Update CI workflow for coverage
This commit is contained in:
7
.github/workflows/python-ci.yml
vendored
7
.github/workflows/python-ci.yml
vendored
@@ -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
4
.gitignore
vendored
@@ -25,3 +25,7 @@ Thumbs.db
|
||||
# Python env
|
||||
.env
|
||||
*.env
|
||||
|
||||
# Coverage files
|
||||
.coverage
|
||||
coverage.xml
|
||||
|
Reference in New Issue
Block a user