Skip to content

Bump django from 4.2.3 to 5.0.3 #359

Bump django from 4.2.3 to 5.0.3

Bump django from 4.2.3 to 5.0.3 #359

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_with_db:
runs-on: ubuntu-latest
services:
db:
image: postgres:14-alpine
env:
POSTGRES_USER: vguser
POSTGRES_PASSWORD: supersecretdbpassword
POSTGRES_DB: voterguide
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Build API image
run: docker build -t api:ci .
- name: Run tests
run: docker run -e DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }} --env-file .env.ci --network host api:ci pytest