diff --git a/.github/workflows/ci.yml b/.forgejo/workflows/ci.yml similarity index 87% rename from .github/workflows/ci.yml rename to .forgejo/workflows/ci.yml index 52a6333..4caf6c0 100644 --- a/.github/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -6,6 +6,7 @@ on: tags: ["v*"] pull_request: branches: [master, main] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -58,17 +59,10 @@ jobs: pip install -e ".[dev]" - name: Run tests - run: pytest --cov=infrasynth --cov-report=xml --cov-report=term-missing -v + run: pytest --cov=infrasynth --cov-report=term-missing -v env: DJANGO_SETTINGS_MODULE: config.settings.test - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - files: ./coverage.xml - flags: unittests - if: success() || failure() - lint: name: Lint runs-on: ubuntu-latest @@ -123,5 +117,3 @@ jobs: push: false load: true tags: infrasynth-base:ci - cache-from: type=gha - cache-to: type=gha,mode=max diff --git a/PLAN.md b/PLAN.md index 539b09c..2a5fc54 100644 --- a/PLAN.md +++ b/PLAN.md @@ -1,7 +1,6 @@ # InfraSynth Base — Plan de Arquitectura -[![CI](https://github.com/anomalyco/infrasynth-base/actions/workflows/ci.yml/badge.svg)](https://github.com/anomalyco/infrasynth-base/actions/workflows/ci.yml) -[![Coverage](https://codecov.io/gh/anomalyco/infrasynth-base/branch/master/graph/badge.svg)](https://codecov.io/gh/anomalyco/infrasynth-base) +[![CI](https://img.shields.io/badge/CI-Forgejo%20Actions-blue.svg)](https://git-ssh.infrasynth.net:2222/moravak/infrasynth-backend-kit) [![Python](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/) [![Django](https://img.shields.io/badge/django-5.2+-green.svg)](https://www.djangoproject.com/) [![Ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff) @@ -134,9 +133,9 @@ InfraSynth Base es un conjunto de Django apps reutilizables que proveen la infra - [x] ruff check . sin errores - [x] mypy infrasynth/ sin errores - [x] pre-commit hooks configurados -- [x] GitHub Actions: tests + lint + typecheck + docker build +- [x] Forgejo Actions: tests + lint + typecheck + docker build - [x] Dockerfile multi-stage + docker-compose con health checks -- [x] Badges (CI, coverage, python, django, ruff, mypy) en PLAN.md +- [x] Badges (CI, python, django, ruff, mypy) en PLAN.md - [ ] Docker push (pendiente de registry config) ### Fase 16 — Multi-tenancy ✅ _(2026-09-24)_ @@ -3441,7 +3440,7 @@ volumes: - **Cache:** Redis (caching + sessions + Celery broker) - **Monitoring:** Sentry (errors) + Prometheus + Grafana (metrics) - **Logging:** structlog → JSON stdout → Loki + Grafana -- **CI/CD:** GitHub Actions (tests + lint + docker build) +- **CI/CD:** Forgejo Actions (tests + lint + typecheck + docker build) ---