Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Enable parallel test execution for coverage report

Roland Geider20c5e42509bf
diff --git a/.coveragerc b/.coveragerc
index 190372c2e..0f69d9caf 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,2 +1,4 @@
[run]
-omit = *migrations*
+omit = */migrations/*
+parallel = true
+concurrency = multiprocessing,thread
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f538d6a8b..adb282146 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,12 +51,10 @@ jobs:
mkdir /tmp/wger-test
# Only run the tests with coverage for one version of python.
- # Coverage is not parallelised because `coverage run` doesn't combine the
- # per-process subprocess data files automatically with Django's runner.
- name: Test the application with coverage
if: matrix.python-version == 3.13
run: |
- uv run coverage run --source='.' ./manage.py test
+ uv run coverage run --source='.' ./manage.py test --parallel auto
uv run coverage lcov
- name: Test the application