|
9 | 9 |
|
10 | 10 | * [About the Template](#about-the-template) |
11 | 11 | * [Features](#features) |
| 12 | +* [Project Structure](#project-structure) |
12 | 13 | * [Tested with](#tested-with) |
13 | 14 | * [Prerequisites](#prerequisites) |
14 | 15 | * [Quickstart](#quickstart) |
|
20 | 21 | * [5. Update dependencies when needed](#5-update-dependencies-when-needed) |
21 | 22 | * [Build and run your application](#build-and-run-your-application) |
22 | 23 | * [Optional: Use `dev` for checks and experiments](#optional-use-dev-for-checks-and-experiments) |
| 24 | + * [GitHub CI checks](#github-ci-checks) |
23 | 25 | * [Optional: Run Codex or Gemini (see more examples below)](#optional-run-codex-or-gemini-see-more-examples-below) |
24 | 26 | * [Optional: Run JupyterLab](#optional-run-jupyterlab) |
25 | 27 | * [💻 AI-Powered CLI Workflow (Gemini & Codex)](#-ai-powered-cli-workflow-gemini--codex) |
@@ -69,6 +71,22 @@ Use it as-is or tailor it to match your team's development workflow. |
69 | 71 | * Simple to extend with Jupyter, SQL drivers, and more |
70 | 72 | * Works identically on any machine with Docker |
71 | 73 |
|
| 74 | +## Project Structure |
| 75 | + |
| 76 | +```text |
| 77 | +. |
| 78 | +├── .github/workflows/ci.yml # GitHub CI: build dev/app, run Ruff + pytest |
| 79 | +├── src/sample/main.py # Example application module |
| 80 | +├── tests/sample/test_main.py # Example pytest tests to extend in your project |
| 81 | +├── Dockerfile # Multi-stage images (base, dev, vim-ide, app) |
| 82 | +├── compose.yaml # Local service orchestration for template workflows |
| 83 | +├── pyproject.toml # Poetry dependencies and tool configuration |
| 84 | +├── poetry.lock # Locked dependency graph |
| 85 | +└── README.md # Setup and usage documentation |
| 86 | +``` |
| 87 | + |
| 88 | +This layout is intentionally minimal so it can be extended for any project. |
| 89 | + |
72 | 90 | ## Tested with |
73 | 91 |
|
74 | 92 | * **Docker**: `27.3.1` – `29.2.1` |
@@ -213,6 +231,18 @@ docker compose run --rm dev ruff check |
213 | 231 | docker compose run --rm dev ruff format --check |
214 | 232 | ``` |
215 | 233 |
|
| 234 | +### GitHub CI checks |
| 235 | + |
| 236 | +This template includes a minimal GitHub Actions workflow in |
| 237 | +`.github/workflows/ci.yml` that: |
| 238 | + |
| 239 | +* builds `dev` and `app` images |
| 240 | +* runs `ruff check .` |
| 241 | +* runs `ruff format --check .` |
| 242 | +* runs `pytest -q` |
| 243 | + |
| 244 | +The same pattern can be easily extended for any other CI system. |
| 245 | + |
216 | 246 | If you’re running as the non-root user and want to try extra system packages |
217 | 247 | before baking them into the image, use `sudo`: |
218 | 248 |
|
|
0 commit comments