From 6a568fa0cdd1de337820892d8014eb93408e935b Mon Sep 17 00:00:00 2001 From: Boo Date: Thu, 18 Jul 2024 02:58:02 +0400 Subject: [PATCH] fix ci --- .github/workflows/pytest.yml | 4 ++-- docker-compose.ci.yml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 docker-compose.ci.yml 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