Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Correctly generate lcov file

Roland Geider5cca0bd1de54
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 052d3c819..84577816d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,8 +64,7 @@ jobs:
run: |
wger create-settings --database-type postgresql
coverage run --source='.' ./manage.py test
- coverage html --directory coverage-postgres
- coverage report
+ coverage lcov
if: matrix.python-version == 3.8
- name: Test the application (Postgres)
@@ -85,12 +84,5 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- path-to-lcov: .coverage
- if: matrix.python-version == 3.8
-
- - name: Save coverage result artifacts
- uses: actions/upload-artifact@v3
- with:
- name: coverage-results-${{ matrix.python-version }}
- path: coverage-postgres/
+ path-to-lcov: coverage.lcov
if: matrix.python-version == 3.8
diff --git a/.gitignore b/.gitignore
index c5123877e..47ea5d013 100644
--- a/.gitignore
+++ b/.gitignore
@@ -73,3 +73,4 @@ venv-wget
# Will need to copy these files to the flutter repo
/wger/i18n.dart
/wger/app_en.arb
+/coverage.lcov