mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
configure coverage
This commit is contained in:
10
.github/workflows/pythonpackage.yml
vendored
10
.github/workflows/pythonpackage.yml
vendored
@@ -41,3 +41,13 @@ jobs:
|
||||
tox
|
||||
env:
|
||||
ESCPOS_CAPABILITIES_FILE: /home/runner/work/python-escpos/python-escpos/capabilities-data/dist/capabilities.json
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
directory: ./coverage/reports/
|
||||
env_vars: OS,PYTHON
|
||||
fail_ci_if_error: true
|
||||
files: ./coverage.xml,!./cache
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
verbose: true
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -22,6 +22,7 @@ dist/
|
||||
src/escpos/version.py
|
||||
.hypothesis
|
||||
.pytest_cache/
|
||||
coverage.xml
|
||||
|
||||
# pyenv
|
||||
.python-version
|
||||
@@ -40,3 +41,4 @@ test/test-cli-output/
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
|
2
tox.ini
2
tox.ini
@@ -21,7 +21,7 @@ deps = jaconv
|
||||
pytest-mock
|
||||
hypothesis>4
|
||||
python-barcode
|
||||
commands = pytest --cov escpos
|
||||
commands = pytest --cov escpos --cov-report=xml
|
||||
passenv = ESCPOS_CAPABILITIES_PICKLE_DIR, ESCPOS_CAPABILITIES_FILE, CI, TRAVIS, TRAVIS_*, APPVEYOR, APPVEYOR_*, CODECOV_*
|
||||
|
||||
[testenv:docs]
|
||||
|
Reference in New Issue
Block a user