mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Use xml for coverage info (#6947)
* append more apps * set source * use labels to force full CI suit * always check for label * use newer syntax * remove unneeded carryforward flag * improve action names * remove unused upload steps * enable discovery of locate test * remove wrong module * delete all ( :-) )lines for upload * remove init for now * add carryfoward back in again * disable flaky test * always run finsh step * deactivate machine test for now * specify refs explicitly * add docker exception * use xml for coverage info * dummy fix * remove dummy fix * dummy change * always export * change path to ensure basepath is submitted * add more paths * reverst isort change * remove unused html export * remove paralell * add plain InvenTree too * Update pyproject.toml * reset paths * Update qc_checks.yaml * Update qc_checks.yaml * fix coverage runner setting * fix coverage tool path * use move, not copy * ignore tmp * reset isort settings * use relative files for reporting * Revert "use relative files for reporting" This reverts commit 1f662bfb975fb30e1de8668463d145a50bc3deb0. * only run after at least 1 succeeds * add TODO * remove coverage subdir run * also force migrations * add coverage to migrations * fix conditional for migration force check * always upload coverage * disable flaky test * fix tests * wait for migrations * re-add function arg? * adjust coverage targets * add no-cov for fixes of flaky tests * remove dummy * revert to "old" upload method"
This commit is contained in:
parent
4adce85ef9
commit
8d41234ef7
1
.github/workflows/qc_checks.yaml
vendored
1
.github/workflows/qc_checks.yaml
vendored
@ -292,6 +292,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
flag-name: backend
|
flag-name: backend
|
||||||
|
file: coverage.xml
|
||||||
git-commit: ${{ github.sha }}
|
git-commit: ${{ github.sha }}
|
||||||
git-branch: ${{ github.ref }}
|
git-branch: ${{ github.ref }}
|
||||||
parallel: true
|
parallel: true
|
||||||
|
2
tasks.py
2
tasks.py
@ -870,7 +870,7 @@ def test(
|
|||||||
if coverage:
|
if coverage:
|
||||||
# Run tests within coverage environment, and generate report
|
# Run tests within coverage environment, and generate report
|
||||||
c.run(f'coverage run {managePyPath()} {cmd}')
|
c.run(f'coverage run {managePyPath()} {cmd}')
|
||||||
c.run('coverage html -i')
|
c.run('coverage xml -i')
|
||||||
else:
|
else:
|
||||||
# Run simple test runner, without coverage
|
# Run simple test runner, without coverage
|
||||||
manage(c, cmd, pty=pty)
|
manage(c, cmd, pty=pty)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user