Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailprivalov committed Sep 28, 2022
1 parent 3a3fd0f commit 2ed1e20
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2ed1e20

Please sign in to comment.