ci: speed up postgres when testing api

This commit is contained in:
jo 2023-04-14 16:04:17 +02:00 committed by jooola
parent f35e09e593
commit dde89def2b
1 changed files with 6 additions and 2 deletions

View File

@ -216,8 +216,12 @@ test_api:
matrix: matrix:
- PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11"] - PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11"]
services: services:
- postgres:15-alpine - name: postgres:15-alpine
- redis:7-alpine command:
- --fsync=off
- --full_page_writes=off
- --synchronous_commit=off
- name: redis:7-alpine
cache: *api_cache cache: *api_cache
variables: variables:
DATABASE_URL: "postgresql://postgres@postgres/postgres" DATABASE_URL: "postgresql://postgres@postgres/postgres"