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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "**" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -28,7 +28,8 @@ 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@v3
|
||||||
with:
|
with:
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@@ -25,3 +25,7 @@ Thumbs.db
|
|||||||
# Python env
|
# Python env
|
||||||
.env
|
.env
|
||||||
*.env
|
*.env
|
||||||
|
|
||||||
|
# Coverage files
|
||||||
|
.coverage
|
||||||
|
coverage.xml
|
||||||
|
Reference in New Issue
Block a user