Skip to content

Commit

Permalink
clean up workflow file after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bisom committed Apr 16, 2024
1 parent d4c0ccc commit d35bb80
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI with Docker Compose
name: Backend Checks

on: [push, pull_request]

Expand All @@ -14,27 +14,19 @@ 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
run: |
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
Expand Down

0 comments on commit d35bb80

Please sign in to comment.