Switch to codecov action with coverage merging
For this we update tox to allow combining piexif / pyexiv2 and / cov options in the regular testenv.
This commit is contained in:
parent
0a0af9d730
commit
0a934921d3
|
@ -62,7 +62,7 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
toxenv: [pyqt515-cov, piexif, lint, packaging, mypy]
|
||||
toxenv: [pyqt515-cov, pyqt515-piexif-cov, lint, packaging, mypy]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3.3.0
|
||||
|
@ -81,9 +81,7 @@ jobs:
|
|||
env:
|
||||
CI: Github-Actions
|
||||
- name: Upload coverage to codecov
|
||||
run: |
|
||||
pip install codecov
|
||||
codecov -X gcov
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
if: matrix.toxenv == 'pyqt515-cov'
|
||||
if: "endsWith(matrix.toxenv, '-cov')"
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: "${{ matrix.toxenv }}"
|
||||
|
|
18
tox.ini
18
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = pyqt-cov,piexif,pyexiv2,lint,packaging,mypy
|
||||
envlist = pyqt,pyqt-piexif,pyqt-pyexiv2,lint,packaging,mypy
|
||||
|
||||
# Standard test suite using pytest
|
||||
[testenv]
|
||||
|
@ -16,24 +16,12 @@ deps =
|
|||
pyqt514: PyQt5==5.14.2
|
||||
pyqt515: -r{toxinidir}/misc/requirements/requirements.txt
|
||||
cov: -r{toxinidir}/misc/requirements/requirements_cov.txt
|
||||
piexif: -r{toxinidir}/misc/requirements/requirements_piexif.txt
|
||||
pyexiv2: -r{toxinidir}/misc/requirements/requirements_pyexiv2.txt
|
||||
|
||||
commands_pre = {envpython} scripts/maybe_build_cextension.py
|
||||
commands = pytest {posargs}
|
||||
|
||||
# Test suite using piexif
|
||||
[testenv:piexif]
|
||||
deps =
|
||||
-r{toxinidir}/misc/requirements/requirements.txt
|
||||
-r{toxinidir}/misc/requirements/requirements_tests.txt
|
||||
-r{toxinidir}/misc/requirements/requirements_piexif.txt
|
||||
|
||||
# Test suite without optional dependencies
|
||||
[testenv:pyexiv2]
|
||||
deps =
|
||||
-r{toxinidir}/misc/requirements/requirements.txt
|
||||
-r{toxinidir}/misc/requirements/requirements_tests.txt
|
||||
-r{toxinidir}/misc/requirements/requirements_pyexiv2.txt
|
||||
|
||||
# Linters and checkers for the source code
|
||||
[testenv:lint]
|
||||
ignore_errors = true
|
||||
|
|
Loading…
Reference in New Issue