From f6e784c5463988c87df4b36bad97ad0668972984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20=C5=81azicki?= Date: Wed, 4 Oct 2023 19:19:09 +0200 Subject: [PATCH] formatting --- .github/workflows/aws.yml | 1 - api/run_tests.sh | 1 - docker-compose.yml | 44 +++++++++++++++++++-------------------- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 6fc5103..5ee16d3 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -79,7 +79,6 @@ jobs: if: 0 == 1 needs: [test] - steps: - name: Checkout uses: actions/checkout@v3 diff --git a/api/run_tests.sh b/api/run_tests.sh index c76de7b..ce4339c 100755 --- a/api/run_tests.sh +++ b/api/run_tests.sh @@ -8,5 +8,4 @@ done echo "PostgreSQL started" -python manage.py migrate pytest -s diff --git a/docker-compose.yml b/docker-compose.yml index f3a277f..615f4cb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,26 @@ version: "3.8" volumes: - postgres_data: {} + postgres_data: {} services: - database: - image: postgres:13 - volumes: - - "postgres_data:/var/lib/postgresql/data" - environment: - POSTGRES_DB: ${POSTGRES_DB} - POSTGRES_USER: ${POSTGRES_USER} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - ports: - - ${POSTGRES_PORT}:5432 + database: + image: postgres:13 + volumes: + - "postgres_data:/var/lib/postgresql/data" + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + ports: + - ${POSTGRES_PORT}:5432 - backend: - build: "." - command: python manage.py runserver 0.0.0.0:8000 - ports: - - 8000:8000 - volumes: - - ./api:/code/api - env_file: - - .env - depends_on: - - database + backend: + build: "." + command: python manage.py runserver 0.0.0.0:8000 + ports: + - 8000:8000 + volumes: + - ./api:/code/api + env_file: + - .env + depends_on: + - database