Skip to content

Commit

Permalink
add initial testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Feb 8, 2024
1 parent 1632b52 commit 472a5f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ jobs:
docker-compose -f docker-compose-dev.yml up -d
docker container ls
# - name: wait for containers to start
# run: |
# sleep 30
# docker container ls

- name: Run tests
run: |
docker-compose -f docker-compose-dev.yml exec -T web bash -c "cd argos && /opt/conda/bin/python manage.py test"
2 changes: 0 additions & 2 deletions argos/argos_viewer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ class BlankTest(TestCase):
def test_placeholder(self):
self.assertEqual(1, 1)

def test_fail(self):
self.assertEqual(1,2)
10 changes: 9 additions & 1 deletion docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ services:
env_file:
- .env
depends_on:
- db
db:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.http.routers.django.rule=Host(`${HOST_DOMAIN:?err}`)"
Expand All @@ -27,6 +28,13 @@ services:

db:
image: postgres:15-alpine

healthcheck:
test: pg_isready
interval: 5s
timeout: 10s
retries: 120

volumes:
- postgres_data_prod:/var/lib/postgresql/data/
expose:
Expand Down

0 comments on commit 472a5f7

Please sign in to comment.