Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Only run the tests with coverage for one version of python

Roland Geidered1947ada544
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4bf21818b..4c3d6f76e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,6 +38,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
+ - name: Display Python version
+ run: python -c "import sys; print(sys.version)"
+
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -45,12 +48,20 @@ jobs:
pip install -r requirements_prod.txt
python setup.py develop
- - name: Test the application (Postgres)
+ # Only run the tests with coverage for one version of python
+ - name: Test the application with coverage (Postgres)
run: |
wger create-settings --database-type postgresql
coverage run --source='.' ./manage.py test
coverage html --directory coverage-postgres
coverage report
+ if: matrix.python-version == 3.8
+
+ - name: Test the application (Postgres)
+ run: |
+ wger create-settings --database-type postgresql
+ ./manage.py test
+ if: matrix.python-version != 3.8
# - name: Test the application (Sqlite)
# run: |