aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-03 23:01:46 -0700
committerTim Harder <radhermit@gmail.com>2021-03-03 23:18:36 -0700
commitcf85fd5b910ce74e2c9591c0511b6eccf5b503a3 (patch)
treeeb21e5f29ebe8a89ff8a4e2cc18d7b6f7820af96 /.github/workflows
parentuse pytest with pytest-cov to run tests instead of coverage (diff)
downloadpkgdev-cf85fd5b910ce74e2c9591c0511b6eccf5b503a3.tar.gz
pkgdev-cf85fd5b910ce74e2c9591c0511b6eccf5b503a3.tar.bz2
pkgdev-cf85fd5b910ce74e2c9591c0511b6eccf5b503a3.zip
github: pip install directly from the repo
And simplify coverage reporting.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml12
1 files changed, 3 insertions, 9 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f0f02e3..20b5f76 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -31,23 +31,17 @@ jobs:
- name: Install dependencies
run: |
- python -m pip install --upgrade pip coverage
- pip install -r requirements/dev.txt
+ python -m pip install --upgrade pip
pip install -r requirements/test.txt
pip install -r requirements/ci.txt
+ pip install .
- name: Test with pytest
# forcibly enable pytest colors
env:
PY_COLORS: 1
run: |
- pytest --cov -v
-
- - name: Report code coverage
- run: |
- coverage combine
- coverage report
- coverage xml
+ pytest --cov --cov-report=xml -v
- name: Submit code coverage to codecov
uses: codecov/codecov-action@v1