File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,21 @@ jobs:
4444 python -m pip install -U -r requirements/testing.txt
4545
4646 - name : Run Unit tests
47- run : pytest -p no:qgis tests/unit/
47+ run : pytest -p no:qgis tests/unit/ -o junit_family=legacy --junitxml=junit.xml
48+
49+ - name : Upload test results to Codecov
50+ if : ${{ !cancelled() }}
51+ uses : codecov/test-results-action@v1
52+ with :
53+ token : ${{ secrets.CODECOV_TOKEN }}
4854
4955 - name : Upload coverage to Codecov
5056 uses : codecov/codecov-action@v5
5157 with :
52- env_vars : PYTHON
58+ env_vars : PYTHON_VERSION
5359 flags : unittests
5460 name : Code Coverage for unittests on Ubuntu.python-${{ env.PYTHON_VERSION }}]
61+ token : ${{ secrets.CODECOV_TOKEN }}
5562
5663 test-qgis :
5764 runs-on : ubuntu-latest
8996 python3 -m pip install -U -r requirements/testing.txt
9097
9198 - name : Run Unit tests
92- run : pytest tests/qgis --junitxml=junit/test-results-qgis.xml --cov-report=xml:coverage-reports/coverage-qgis .xml
99+ run : pytest tests/qgis -o junit_family=legacy --junitxml=junit .xml
93100
94101 - name : Upload coverage to Codecov
95102 uses : codecov/codecov-action@v5
103+ with :
104+ env_vars : PYTHON_VERSION
105+ flags : qgis-tests
106+ name : Code Coverage for QGIS tests
107+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -52,17 +52,16 @@ addopts =
5252 --junitxml =junit/test-results.xml
5353 --cov-config =setup.cfg
5454 --cov =qtribu
55- --cov-report =xml
5655 --cov-report =html
56+ --cov-report =term
57+ --cov-report =xml
5758 --ignore =tests/_wip/
5859norecursedirs = .* build dev development dist docs CVS fixtures _darcs {arch} *.egg venv _wip
5960python_files = test_*.py
6061testpaths = tests
6162
6263[coverage:run]
6364branch = True
64- include =
65- qtribu/*
6665omit =
6766 .venv/*
6867 tests/*
@@ -75,4 +74,6 @@ exclude_lines =
7574 if __name__ == .__main__.:
7675
7776ignore_errors = True
77+ omit =
78+ qtribu/gui/**/*.py
7879show_missing = True
You can’t perform that action at this time.
0 commit comments