Skip to content

Corriger la suppresion de détection dans la zone #2159

Corriger la suppresion de détection dans la zone

Corriger la suppresion de détection dans la zone #2159

Workflow file for this run

name: Django application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: github_actions
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11.1
- name: Install dependencies
run: pip install pip-tools && pip-sync && playwright install
- name: Check no missing migrations
run: python manage.py makemigrations --check --dry-run > /dev/null
env:
SECRET_KEY: NOT_A_REAL_SECRET
DATABASE_URL: postgres://postgres:postgres@localhost/github_actions
STORAGE_ENGINE: django.core.files.storage.FileSystemStorage
OIDC_RP_CLIENT_ID: null
OIDC_RP_CLIENT_SECRET: null
OIDC_RP_AUTH_ENDPOINT: null
OIDC_RP_TOKEN_ENDPOINT: null
OIDC_RP_USER_ENDPOINT: null
OIDC_RP_JWKS_ENDPOINT: null
OIDC_RP_LOGOUT_ENDPOINT: null
DJANGO_ADMIN_URL: mon_url_secrete_admin
SCALINGO_REDIS_URL: redis://127.0.0.1:6379
- name: Run ruff
run: ruff check .
- name: Run ruff format
run: ruff format --check .
- name: Run DjHTML
run: ./bin/check_html_format.sh
- name: Run tests
run: pytest
env:
SECRET_KEY: NOT_A_REAL_SECRET
DATABASE_URL: postgres://postgres:postgres@localhost/github_actions
DJANGO_ADMIN_URL: mon_url_secrete_admin