Corrective implementation of implementation.md (containerized Django/Wagtail) #3

Merged
mark merged 26 commits from codex_b/implementation-e2e into main 2026-02-28 17:55:14 +00:00
3 changed files with 29 additions and 20 deletions
Showing only changes of commit 2cb1e622e2 - Show all commits

15
.dockerignore Normal file
View File

@@ -0,0 +1,15 @@
.git
.gitea
.github
.venv
__pycache__/
*.pyc
*.pyo
*.pyd
.pytest_cache/
.mypy_cache/
.ruff_cache/
.coverage
.benchmarks/
media/
staticfiles/

View File

@@ -11,25 +11,22 @@ jobs:
ci: ci:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
COMPOSE_PROJECT_NAME: gitea-pr-${{ github.event.pull_request.number || github.run_id }} CI_IMAGE: nohype-ci:${{ github.run_id }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clean previous compose project
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml down -v --remove-orphans || true
- name: Build - name: Build
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml build run: docker build -t "$CI_IMAGE" .
- name: Ruff - name: Ruff
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm --no-deps web ruff check . run: docker run --rm "$CI_IMAGE" ruff check .
- name: Mypy - name: Mypy
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm --no-deps web mypy apps config run: docker run --rm "$CI_IMAGE" mypy apps config
- name: Pytest - name: Pytest
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm web pytest run: docker run --rm -e DATABASE_URL=sqlite:////tmp/ci.sqlite3 "$CI_IMAGE" pytest
- name: Final cleanup - name: Remove CI image
if: always() if: always()
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml down -v --remove-orphans || true run: docker image rm -f "$CI_IMAGE" || true

View File

@@ -11,25 +11,22 @@ jobs:
ci: ci:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
COMPOSE_PROJECT_NAME: gh-pr-${{ github.event.pull_request.number || github.run_id }} CI_IMAGE: nohype-ci:${{ github.run_id }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clean previous compose project
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml down -v --remove-orphans || true
- name: Build - name: Build
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml build run: docker build -t "$CI_IMAGE" .
- name: Ruff - name: Ruff
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm --no-deps web ruff check . run: docker run --rm "$CI_IMAGE" ruff check .
- name: Mypy - name: Mypy
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm --no-deps web mypy apps config run: docker run --rm "$CI_IMAGE" mypy apps config
- name: Pytest - name: Pytest
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm web pytest run: docker run --rm -e DATABASE_URL=sqlite:////tmp/ci.sqlite3 "$CI_IMAGE" pytest
- name: Final cleanup - name: Remove CI image
if: always() if: always()
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml down -v --remove-orphans || true run: docker image rm -f "$CI_IMAGE" || true