diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index ca1b9c6..ef39719 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,10 +14,10 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Build and Run Docker Compose run: | - docker compose up --build -d + docker compose -f docker-compose.yml -f docker-compose.ci.yml up --build -d - name: Run pytest run: | - docker compose exec api pytest -v -s --log-level DEBUG + docker compose -f docker-compose.yml -f docker-compose.ci.yml exec api pytest -v -s --log-level DEBUG - name: Stop and remove containers run: | docker compose down diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml new file mode 100644 index 0000000..740c756 --- /dev/null +++ b/docker-compose.ci.yml @@ -0,0 +1,8 @@ +services: + api: + env_file: + - secrets.env.example + + ui: + env_file: + - secrets.env.example