From af7b2d31f153261edd55e66d766c9b5319a351c2 Mon Sep 17 00:00:00 2001 From: Tim Savage Date: Fri, 8 Sep 2023 19:56:28 +1000 Subject: [PATCH] Generate coverage reports as part of tests and run tests on all branches --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 37c3fc7..64b313e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,6 @@ name: Run Tests on: push: - branches: [ develop, feature/*, bugfix/*, release/* ] jobs: test: @@ -34,4 +33,6 @@ jobs: - name: Test with Django test runner run: | - poetry run ./runtests.py + poetry run coverage run --branch -- ./runtests.py + poetry run coverage xml --include="oscar_odin/*" -o dist/coverage.xml + poetry run coverage report --include="oscar_odin/*"