Skip to content

ci: use plain postgres:16 #132

ci: use plain postgres:16

ci: use plain postgres:16 #132

Workflow file for this run

name: CI
on:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: osds_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/osds_test
DJANGO_SECRET_KEY: ci-only-not-a-secret
DJANGO_DEBUG: "0"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: pip install -r requirements.txt
- run: python manage.py check
- run: python manage.py makemigrations --check --dry-run
- run: python manage.py test