From 8cdb08a18a1d0ae69ae1175a33ba41da537d87bf Mon Sep 17 00:00:00 2001 From: Lymar Volodymyr Date: Sat, 18 May 2024 20:27:06 +0200 Subject: [PATCH] fix ci-tests, env.example --- .env.example | 26 +++++++++++++------------- .github/workflows/main.yml | 1 + 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.env.example b/.env.example index 8dcf230..d353375 100644 --- a/.env.example +++ b/.env.example @@ -1,27 +1,27 @@ # Debug -DEBUG=True +DEBUG = True # CORS -CORS_ORIGIN_ALLOW_ALL=False -CORS_ALLOW_CREDENTIALS=True -CORS_ALLOWED_ORIGINS=http://... +CORS_ORIGIN_ALLOW_ALL = False +CORS_ALLOW_CREDENTIALS = True +CORS_ALLOWED_ORIGINS = http://... # Allowed hosts -ALLOWED_HOSTS=* +ALLOWED_HOSTS = * # Database variables -DATABASE_NAME=db_name -DATABASE_USER=db_user -DATABASE_PASSWORD=db_password -DATABASE_HOST=db -DATABASE_PORT=5432 +DATABASE_NAME = db_name +DATABASE_USER = db_user +DATABASE_PASSWORD = db_password +DATABASE_HOST = db +DATABASE_PORT = 5432 # Django secret key SECRET_KEY = django-insecure-your_secret_key # Mail secret key -EMAIL_HOST=smtp.mail -EMAIL_PORT=port.mail -EMAIL_USE_SSL=True +EMAIL_HOST = smtp.mail +EMAIL_PORT = port.mail +EMAIL_USE_SSL = True EMAIL_HOST_USER = example@mail.com EMAIL_HOST_PASSWORD = email_password diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de26b96..f3bd430 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,6 +57,7 @@ jobs: DATABASE_HOST: postgres DATABASE_PORT: 5432 DEBUG: ${{ secrets.DEBUG }} + SECRET_KEY: ${{ secrets.SECRET_KEY }} run: python3 manage.py migrate - name: Tests env: