From 2ed1e20d798d626267c49ba51ba410f9e4c5560a Mon Sep 17 00:00:00 2001 From: Mikhail Privalov Date: Wed, 28 Sep 2022 05:16:30 +0300 Subject: [PATCH] fix tests --- .github/workflows/python-app.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 07ffec53b2..30625fa7a9 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,6 +19,16 @@ jobs: build: runs-on: ubuntu-latest + services: + postgres: + image: postgres:14 + env: + POSTGRES_DB: l2 + POSTGRES_PASSWORD: 123456 + POSTGRES_USER: postgres + ports: ['5432:5432'] + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + steps: - uses: actions/checkout@v3 - run: sudo apt install libmupdf-dev @@ -32,13 +42,6 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - run: poetry install - - run: | - local_config="DATABASES = {\ - 'default': {\ - 'ENGINE': 'django.db.backends.dummy',\ - }\ - }" - echo "$local_config" > laboratory/local_settings.py - name: Migrate run: | source .venv/bin/activate