Skip to content

#118 hotfix/backend-fix-dev-branch-after-users-profiles-issue: repair files conf #101

#118 hotfix/backend-fix-dev-branch-after-users-profiles-issue: repair files conf

#118 hotfix/backend-fix-dev-branch-after-users-profiles-issue: repair files conf #101

Workflow file for this run

name: Python App Quality
on:
pull_request:
branches:
- dev
- main
jobs:
quality:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "web/requirements.txt"
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r backend/requirements.txt
- name: Create .env file with fake data
run: |
echo "POSTGRES_HOST=fake_postgres_host" >> backend/.env
echo "POSTGRES_PORT=5432" >> backend/.env
echo "POSTGRES_USER=fake_user" >> backend/.env
echo "POSTGRES_PASSWORD=fake_password" >> backend/.env
echo "POSTGRES_DB=fake_db" >> backend/.env
echo "SECRET_KEY=fake_secret_key" >> backend/.env
echo "ALGORITHM=HS256" >> backend/.env
echo "ACCESS_TOKEN_EXPIRE_MINUTES=30" >> backend/.env
echo "MINIO_HOST_URL=fake_minio_host_url" >> backend/.env
echo "MINIO_ACCESS_KEY=fake_minio_access_key" >> backend/.env
echo "MINIO_SECRET_KEY=fake_minio_secret_key" >> backend/.env
echo "MINIO_SECURE=false" >> backend/.env
echo "CORS_ORIGINS=http://localhost,http://localhost:3000" >> backend/.env
- name: Build the stack
run: docker-compose up -d