From d35bb800fc9a0c4b9ef6bba88f8d7b493321983c Mon Sep 17 00:00:00 2001 From: Christopher Bisom Date: Tue, 16 Apr 2024 08:40:09 -0400 Subject: [PATCH] clean up workflow file after testing --- .github/workflows/ci.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1d1da87..3dfa648 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: CI with Docker Compose +name: Backend Checks on: [push, pull_request] @@ -14,15 +14,8 @@ jobs: with: python-version: "3.12" - - name: Install Docker Compose - run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose - - name: Build run: | - docker image prune -a -f - docker-compose -f docker-compose-dev-ga.yaml down docker-compose -f docker-compose-dev-ga.yaml up --build -d - name: Run Tests @@ -30,11 +23,10 @@ jobs: docker-compose -f docker-compose-dev-ga.yaml exec -T backend pip3 install pytest docker-compose -f docker-compose-dev.yaml exec -T backend python3 -m pytest - - name: Fetch container logs + - name: Print logs if: always() run: | docker ps -a - docker image ls df -h docker logs commonplace-public_db_1 docker logs commonplace-public_backend_1