From d8c7e3f8a6d93c98d02d40e5abbc34f0a5146254 Mon Sep 17 00:00:00 2001 From: Josh Faigan Date: Sat, 30 Sep 2023 22:38:38 -0400 Subject: [PATCH] trying again --- .github/workflows/ci-test.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 2d2102c..1a8e3b7 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -1,8 +1,6 @@ name: CI -on: - pull_request: - branches: [ main ] +on: [push, pull_request] jobs: test: @@ -22,20 +20,17 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - - name: Build and start Docker containers run: | docker-compose up -d - - name: Wait for the server to be up run: | while ! curl -s http://localhost:5000/ > /dev/null; do sleep 1 done - - name: Run tests run: | + # Assuming you're running tests from within a container. docker exec -t pokebackpackfinal_pokeapp_1 python3 -m unittest discover -s /app/poke_app/ -p '*test.py' - - name: Stop Docker containers - run: docker-compose down + run: docker-compose down \ No newline at end of file