Files
Hulumath-Web/Makefile
T
Jacky 1dd828609e
CI / test (pull_request) Successful in 2m53s
PR合并自动部署 / release-check (pull_request) Successful in 1m34s
PR合并自动部署 / deploy (pull_request) Successful in 12s
feat: add realtime challenge client and local smoke test
2026-08-09 03:08:01 +08:00

27 lines
711 B
Makefile

.PHONY: install migrate seed run run-asgi test check
install:
python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt
migrate:
cd backend && ../.venv/bin/python manage.py migrate
seed:
cd backend && ../.venv/bin/python manage.py seed_initial_content
cd backend && ../.venv/bin/python manage.py seed_contests
run:
cd backend && ../.venv/bin/python manage.py runserver
run-asgi:
cd backend && ../.venv/bin/uvicorn config.asgi:application --host 127.0.0.1 --port 8000 --reload
test:
.venv/bin/python -m pytest -q
check:
.venv/bin/ruff check backend scripts
cd backend && ../.venv/bin/python manage.py check
cd backend && ../.venv/bin/python manage.py makemigrations --check --dry-run