Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailprivalov committed Sep 27, 2022
1 parent dac071a commit 9628b3c
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ jobs:
build:
runs-on: self-hosted

env:
SECRET_KEY: 'COMMIT_${SHORT_SHA}'

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 5s --health-timeout 1s --health-retries 25

steps:
- uses: actions/checkout@v3
- run: sudo apt install libmupdf-dev
Expand All @@ -49,6 +36,13 @@ jobs:
virtualenvs-in-project: true
- run: cp -r $HOME/.poetry/lib/poetry/_vendor/py3.9 $HOME/.poetry/lib/poetry/_vendor/py3.10
- 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 9628b3c

Please sign in to comment.