Skip to content

Commit

Permalink
add test fail-under flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Hynn01 committed Feb 8, 2022
1 parent e3d4704 commit eb5f27b
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,20 @@ jobs:
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
fail_ci_if_error: true
# with:
# directory: ./coverage/reports/
# env_vars: OS,PYTHON
# fail_ci_if_error: true
# files: ./coverage1.xml,./coverage2.xml
# flags: unittests
# name: codecov-umbrella
# path_to_write_report: ./coverage/codecov_report.txt
pytest --cov=./ --cov-report=xml --cov-fail-under=80
# - name: Run tests
# uses: dima-engineer/[email protected]
# with:
# cov-omit-list: tests/*
# cov-threshold-single: 85
# cov-threshold-total: 90
# cov-threshold-total: 90

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
fail_ci_if_error: true

# - name: Run pylint on dslinter source code
# run: pylint dslinter

0 comments on commit eb5f27b

Please sign in to comment.