mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Merge pull request #28 from PR0M3TH3AN/codex/update-github-workflow-for-testing
Improve CI coverage gating
This commit is contained in:
9
.github/workflows/python-ci.yml
vendored
9
.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,9 +28,10 @@ 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
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-xml
|
||||
path: coverage.xml
|
||||
|
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