From af53add1ba66e7f584d0eb0d92faffeedf3264b6 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 4 Apr 2024 00:24:14 +0200 Subject: [PATCH] use xml for coverage info --- .github/workflows/qc_checks.yaml | 7 +++++-- tasks.py | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index 1deaee69d6..e75efa307b 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -281,7 +281,9 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: backend - parallel: true + file: coverage.xml + git-commit: ${{ github.sha }} + git-branch: ${{ github.ref }} postgres: name: Tests - DB [PostgreSQL] @@ -514,7 +516,8 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: pui - parallel: true + git-commit: ${{ github.sha }} + git-branch: ${{ github.ref }} platform_ui_build: name: Build - UI Platform diff --git a/tasks.py b/tasks.py index 5cf0f25854..9a79634922 100644 --- a/tasks.py +++ b/tasks.py @@ -55,6 +55,9 @@ def apps(): 'users', 'plugin', 'InvenTree', + 'generic', + 'machine', + 'web', ] @@ -862,6 +865,7 @@ def test( # Run tests within coverage environment, and generate report c.run(f'coverage run {managePyPath()} {cmd}') c.run('coverage html -i') + c.run('coverage xml') else: # Run simple test runner, without coverage manage(c, cmd, pty=pty)