commit d3937586bf170334688467da0ed23726acaa0db7
parent 6ab9415b33bf5a39fe4461cdbadb4dffbd8be33a
Author: parazyd <parazyd@dyne.org>
Date: Fri, 16 Apr 2021 11:20:52 +0200
Attempt at code coverage in CI.
Diffstat:
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/py.yaml b/.github/workflows/py.yaml
@@ -19,7 +19,16 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pyzmq
+ pip install coverage
pip install -e .
- - name: Run tests
+ - name: Run tests and make coverage report
run: |
- python tests
+ make coverage
+ - name: Upload coverage report
+ uses: codecov/codecov-action@v1
+ with:
+ files: ./coverage.xml
+ flags: unittests
+ env_vars: OS,PYTHON
+ fail_ci_if_error: true
+ verbose: true
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,4 @@
*.pyc
.coverage
+coverage.xml
htmlcov
diff --git a/Makefile b/Makefile
@@ -14,3 +14,4 @@ coverage:
coverage run tests
coverage report
coverage html
+ coverage xml