From 8d41234ef7b3e2ea59c23deb9d962d0b3e164dea Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 9 Apr 2024 01:33:27 +0100 Subject: [PATCH] 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" --- .github/workflows/qc_checks.yaml | 1 + tasks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index ca8ef33b49..580eed7341 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -292,6 +292,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: backend + file: coverage.xml git-commit: ${{ github.sha }} git-branch: ${{ github.ref }} parallel: true diff --git a/tasks.py b/tasks.py index 4113511ea9..37052e2014 100644 --- a/tasks.py +++ b/tasks.py @@ -870,7 +870,7 @@ def test( if coverage: # Run tests within coverage environment, and generate report c.run(f'coverage run {managePyPath()} {cmd}') - c.run('coverage html -i') + c.run('coverage xml -i') else: # Run simple test runner, without coverage manage(c, cmd, pty=pty)