diff --git a/.env.sample b/.env.sample index 064f82d08..51ffa1a19 100644 --- a/.env.sample +++ b/.env.sample @@ -1,12 +1,12 @@ PYTHON_ENV=dev DB_TYPE=postgresql -DB_NAME="" -DB_USER="" -DB_PASSWORD="" -DB_HOST="" +DB_NAME=test +DB_USER=username +DB_PASSWORD=password +DB_HOST="localhost" DB_PORT=5432 MYSQL_DRIVER= -DB_URL=postgresql://username:password@host:PORT/dbname +DB_URL=postgresql://username:password@localhost:5432/test SECRET_KEY = "" ALGORITHM = HS256 ACCESS_TOKEN_EXPIRE_MINUTES = 10 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c36e7b435..224dbc779 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main, staging, dev] + branches: [main, staging, dev, devops-main] pull_request: - branches: [main, staging, dev] + branches: [main, staging, dev, devops-main] jobs: build-and-test: @@ -14,9 +14,9 @@ jobs: postgres: image: postgres:latest env: - POSTGRES_USER: - POSTGRES_PASSWORD: - POSTGRES_DB: + POSTGRES_USER: 'username' + POSTGRES_PASSWORD: "password" + POSTGRES_DB: "test" ports: - 5432:5432 @@ -34,16 +34,11 @@ jobs: run: | pip install -r requirements.txt - # - name: Copy env file - # run: cp .env.sample .env + - name: Copy env file + run: cp .env.sample .env - # - name: Copy env file for main - # if: github.ref == 'refs/heads/main' - # run: cp .env.production .env - - # - name: Copy env file for staging - # if: github.ref == 'refs/heads/staging' - # run: cp .env.staging .env + - name: Run app + run: python3 main.py # - name: Run migrations # run: |