Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Test for correct python version

Roland Geider301323099789
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 84577816d..0eb5d5560 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -65,13 +65,13 @@ jobs:
wger create-settings --database-type postgresql
coverage run --source='.' ./manage.py test
coverage lcov
- if: matrix.python-version == 3.8
+ if: matrix.python-version == 3.10
- name: Test the application (Postgres)
run: |
wger create-settings --database-type postgresql
python manage.py test
- if: matrix.python-version != 3.8
+ if: matrix.python-version != 3.10
# - name: Test the application (Sqlite)
# run: |
@@ -85,4 +85,4 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
- if: matrix.python-version == 3.8
+ if: matrix.python-version == 3.10
diff --git a/wger/urls.py b/wger/urls.py
index b7e9fcd24..50bef1e5a 100644
--- a/wger/urls.py
+++ b/wger/urls.py
@@ -237,7 +237,9 @@ urlpatterns += [
# The api user login
path(
- 'api/v2/login/', core_api_views.UserAPILoginView.as_view({'post': 'post'}), name='api_user'
+ 'api/v2/login/',
+ core_api_views.UserAPILoginView.as_view({'post': 'post'}),
+ name='api_user'
),
path(
'api/v2/register/',