Use SQLite when testing
This commit is contained in:
parent
f0bb197611
commit
ea4cd498d0
4 changed files with 48 additions and 41 deletions
23
.github/workflows/docker.yaml
vendored
23
.github/workflows/docker.yaml
vendored
|
|
@ -11,28 +11,9 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DJANGO_SECRET_KEY: 1234567890
|
||||
DJANGO_DEBUG: False
|
||||
POSTGRES_DB: ttvdrops_test
|
||||
POSTGRES_USER: ttvdrops_test
|
||||
POSTGRES_PASSWORD: testpass123
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: 5432
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17
|
||||
env:
|
||||
POSTGRES_DB: ttvdrops_test
|
||||
POSTGRES_USER: ttvdrops_test
|
||||
POSTGRES_PASSWORD: testpass123
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
ports:
|
||||
- 5432:5432
|
||||
DJANGO_SECRET_KEY: 1234567890
|
||||
TESTING: True
|
||||
|
||||
steps:
|
||||
- uses: docker/login-action@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue