Skip to content

Commit

Permalink
trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilGenius13 committed Oct 1, 2023
1 parent 6135f96 commit d8c7e3f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

on:
pull_request:
branches: [ main ]
on: [push, pull_request]

jobs:
test:
Expand All @@ -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

0 comments on commit d8c7e3f

Please sign in to comment.