Skip to content

Commit

Permalink
Adds cmments to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Dec 4, 2023
1 parent 92ebf3d commit bdd7958
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_call:

jobs:

# System configuration tests including checks for obviously
# incorrect settings and missing database migrations
system-checks:
name: System Checks
runs-on: ubuntu-latest
Expand All @@ -24,6 +27,8 @@ jobs:
- name: Run migration checks
run: docker run test-image makemigrations --check

# Integration test requiring all API health checks to pass
# when launching the docker container with default settings.
health-checks:
name: API Health Checks
runs-on: ubuntu-latest
Expand All @@ -41,14 +46,15 @@ jobs:
- name: Run API health checks
run: |
docker run --detach -p 8000:8000 test-image
sleep 30
sleep 30 # Wait for API server to start
http_status=$(wget -NS localhost:8000/health/ 2>&1 | grep "HTTP/" | awk '{print $2}')
jq . index.html
if [ "$http_status" -ne 200 ]; then
exit 1
fi
# Run any/all application tests using the Django `test` utility
app-tests:
name: Application Tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit bdd7958

Please sign in to comment.