This project is a Django REST API with modern Python tooling, using uv for dependency management, GitHub Actions for CI, Docker for containerization, and Allure for test reporting.
- Django REST API (with DRF)
- Modern dependency management with uv and lockfile
- Automated testing and linting (pytest, pytest-xdist for parallelism, black, isort, pylint, bandit)
- Allure test reporting
- GitHub Actions CI workflow
- Docker support for easy deployment
git clone <your-repo-url>
cd <your-repo>pip install uv
uv sync --all-extras --devuv run python api/coronavstech/manage.py migrate
uv run python api/coronavstech/manage.py runserveruv run pytest -v -n autouv run black . --check
uv run isort . --check --diff
uv run pylint api coronavstech
uv run bandit -r api --skip B101,B105- Generate Allure results:
uv run pytest --alluredir=allure-results
- View Allure report (requires Allure CLI):
- Install Allure CLI
- Run:
allure serve allure-results
Build and run the app in Docker:
docker build -t myapp .
docker run -p 8000:8000 myapp- The project uses GitHub Actions for CI.
- The workflow runs tests (in parallel), linting, formatting, security checks, and dependency review on every push and pull request.
api/
coronavstech/
manage.py
...
fibonacci/
Dockerfile
.dockerignore
.pyproject.toml
.venv/ (ignored)
- Run Django server:
uv run python api/coronavstech/manage.py runserver - Run tests in parallel:
uv run pytest -v -n auto - Lint:
uv run pylint api coronavstech - Format:
uv run black . --check - Import order:
uv run isort . --check --diff - Security:
uv run bandit -r api --skip B101,B105 - Allure results:
uv run pytest --alluredir=allure-results - Allure report (CLI):
allure serve allure-results
MIT