Skip to content

Update dependency django to v4.2.4 (#50) #49

Update dependency django to v4.2.4 (#50)

Update dependency django to v4.2.4 (#50) #49

Workflow file for this run

name: django-ci
on:
workflow_call:
workflow_dispatch:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
test:
runs-on: ubuntu-latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST: localhost
POSTGRES_DB: djtesting
POSTGRES_PORT: 5432
DJANGO_SECRET_KEY: test-key
services:
postgres_main:
image: postgres:15
env:
POSTGRES_USER: ${{ env.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ env.POSTGRES_DB }}
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.6
uses: actions/setup-python@v4
with:
python-version: '3.10.6'
- name: Setup sample .env
run: cp .env.defaults .env
- name: Install pip and poetry dependencies
run: |
pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create true
poetry install --no-root
- name: Create directories
run: |
mkdir tmp
- name: Run Django Tests
env:
DJANGO_SETTINGS_MODULE: "app.settings.development"
PYTHONUNBUFFERED: 1
run: |
poetry run python manage.py test