Deploy test / deploy (push) Failing after 1m13s
- .gitea/workflows/deploy-test.yaml : à chaque push sur main, publie les images sur Harbor, met à jour les pods du namespace prism-test (kubectl set image), attend le rollout et contrôle le site - settings : base de données via DB_* (à défaut de DATABASE_URL), fichiers statiques servis par WhiteNoise, HTTPS derrière le proxy - Dockerfile : collectstatic à la construction de l'image - dépendance whitenoise, README : section Déploiement Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
53 lines
1.2 KiB
TOML
53 lines
1.2 KiB
TOML
[project]
|
||
name = "prism"
|
||
version = "0.1.0"
|
||
description = "PRISM – Pollution and Risks Identification System for Medicine (back-end)"
|
||
readme = "../README.md"
|
||
license = "GPL-3.0-or-later"
|
||
requires-python = ">=3.12,<3.13"
|
||
dependencies = [
|
||
"django~=5.2",
|
||
"djangorestframework~=3.16",
|
||
"drf-spectacular~=0.28",
|
||
"django-environ~=0.12",
|
||
"psycopg[binary]~=3.2",
|
||
"argon2-cffi~=25.1",
|
||
"django-otp~=1.6",
|
||
"qrcode~=8.0",
|
||
"django-simple-history~=3.8",
|
||
"httpx~=0.28",
|
||
"gunicorn~=23.0",
|
||
"whitenoise~=6.9",
|
||
]
|
||
|
||
[dependency-groups]
|
||
dev = [
|
||
"pytest~=8.3",
|
||
"pytest-django~=4.10",
|
||
"pytest-asyncio~=0.26",
|
||
"respx~=0.22",
|
||
"ruff~=0.11",
|
||
]
|
||
|
||
[tool.uv]
|
||
package = false
|
||
|
||
[tool.ruff]
|
||
line-length = 100
|
||
target-version = "py312"
|
||
extend-exclude = ["*/migrations/*"]
|
||
|
||
[tool.ruff.lint]
|
||
select = ["E", "F", "W", "I", "B", "UP", "DJ", "S", "SIM"]
|
||
ignore = ["S101"]
|
||
|
||
[tool.ruff.lint.per-file-ignores]
|
||
"tests/*" = ["S105", "S106"]
|
||
|
||
[tool.pytest.ini_options]
|
||
DJANGO_SETTINGS_MODULE = "config.settings"
|
||
testpaths = ["tests"]
|
||
asyncio_mode = "auto"
|
||
asyncio_default_fixture_loop_scope = "function"
|
||
filterwarnings = ["ignore:No directory at:UserWarning"]
|