summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-16 15:44:31 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-16 15:44:31 +0000
commite3943aa52a9eb0de2fe9cfe62358fbf8b974922b (patch)
tree7d1b946eb644dc991614304398ea3aa96a78fdc6 /.github/workflows
parent2bd13ae65e6cb502c48a1e0bed86fcb3e2d2c5b8 (diff)
downloadpython-setuptools-git-e3943aa52a9eb0de2fe9cfe62358fbf8b974922b.tar.gz
Prevent CI from trying to use '--cov' when pytest-cov is not installed
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c985f851..da2b57b7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -39,9 +39,12 @@ jobs:
run: |
python -m pip install tox
- name: Run tests
- run: tox -- --cov-report xml
+ run: tox
+ - name: Create coverage report
+ if: hashFiles('.coverage') != '' # Rudimentary `file.exists()`
+ run: pipx run coverage xml --ignore-errors
- name: Publish coverage
- if: false # disabled for #2727
+ if: hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
uses: codecov/codecov-action@v1
with:
flags: >- # Mark which lines are covered by which envs