Skip to content

Commit

Permalink
Use xml for coverage info (#6947)
Browse files Browse the repository at this point in the history
* 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 1f662bf.

* 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"
  • Loading branch information
matmair committed Apr 9, 2024
1 parent 4adce85 commit 8d41234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/qc_checks.yaml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Expand Up @@ -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)
Expand Down

0 comments on commit 8d41234

Please sign in to comment.