Self hosted FLOSS fitness/workout, nutrition and weight tracker
Test the application using sqlite
Roland Geider50bc6a7bc3ec
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 0eb5d5560..47c7062a4 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -12,25 +12,23 @@ on:jobs:ci-job:- runs-on: ubuntu-20.04+ runs-on: ubuntu-22.04strategy:- max-parallel: 3matrix:#TODO: pypy3 has problems compiling lxmlpython-version: [ '3.9', '3.10']name: CI job (python ${{ matrix.python-version }})- services:- postgres:- image: postgres:12.0-alpine- env:- POSTGRES_USER: wger- POSTGRES_PASSWORD: wger- POSTGRES_DB: wger- ports:- - 5432:5432- # needed because the postgres container does not provide a health check- options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5+ #services:+ # postgres:+ # image: postgres:12.0-alpine+ # env:+ # POSTGRES_USER: wger+ # POSTGRES_PASSWORD: wger+ # POSTGRES_DB: wger+ # ports:+ # - 5432:5432+ # options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5steps:@@ -60,26 +58,20 @@ jobs:pip3 install -e .# Only run the tests with coverage for one version of python- - name: Test the application with coverage (Postgres)+ # wger create-settings --database-type postgresql+ - name: Test the application with coveragerun: |- wger create-settings --database-type postgresql+ wger create-settingscoverage run --source='.' ./manage.py testcoverage lcovif: matrix.python-version == 3.10- - name: Test the application (Postgres)+ - name: Test the applicationrun: |- wger create-settings --database-type postgresql+ wger create-settingspython manage.py testif: matrix.python-version != 3.10- # - name: Test the application (Sqlite)- # run: |- # wger create-settings- # coverage run --source='.' ./manage.py test- # coverage html --directory coverage-sqlite- # coverage report-- name: Coverallsuses: coverallsapp/github-action@masterwith: