Skip to content

temporarily remove frontend check #15

temporarily remove frontend check

temporarily remove frontend check #15

Workflow file for this run

name: CI with Docker Compose
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: Dev
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Build
run: |
docker-compose -f docker-compose-dev-ga.yaml up --build -d
env:
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
FLASK_SECRET_KEY: ${{ secrets.FLASK_SECRET_KEY }}
DATABASE_USER: ${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
DATABASE_DB: ${{ secrets.DATABASE_DB }}
DATABASE_HOST: ${{ secrets.DATABASE_HOST }}
TEST_DATABASE_DB: ${{ secrets.TEST_DATABASE_DB }}
ENVIRONMENT: ${{ env.ENVIRONMENT }}
- name: Run Tests
run: |
docker-compose -f docker-compose-dev-ga.yaml exec backend pytest
docker-compose exec -T commonplace_backend_1 pip3 install pytest
docker-compose exec -T commonplace_backend_1 pytest
- name: Cleanup
if: always()
run: docker-compose -f docker-compose-dev-ga.yaml down