From 757f7790309b094e1d96d0e7e6318288823cef69 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 15 Apr 2026 20:20:13 -0700 Subject: [PATCH] ci: add GitHub Actions CI for public credibility badge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lean self-contained workflow — no Forgejo-specific secrets. circuitforge-core installs from Forgejo git (public repo). Forgejo (.forgejo/workflows/ci.yml) remains the canonical CI. Backend: ruff + pytest | Frontend: vue-tsc only (no vitest yet) --- .github/workflows/ci.yml | 59 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5a1e158 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,59 @@ +# Kiwi CI — runs on GitHub mirror for public credibility badge. +# Forgejo (.forgejo/workflows/ci.yml) is the canonical CI — keep these in sync. +# No Forgejo-specific secrets used here; circuitforge-core is public on Forgejo. +# +# Note: frontend has no test suite yet — CI runs typecheck only. +# Add 'npm run test' when vitest is wired. + +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + backend: + name: Backend (Python) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: pip + + - name: Install circuitforge-core + run: pip install git+https://git.opensourcesolarpunk.com/Circuit-Forge/circuitforge-core.git@main + + - name: Install dependencies + run: pip install -e . pytest pytest-asyncio httpx ruff + + - name: Lint + run: ruff check . + + - name: Test + run: pytest tests/ -v --tb=short + + frontend: + name: Frontend (Vue) + runs-on: ubuntu-latest + defaults: + run: + working-directory: frontend + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: npm + cache-dependency-path: frontend/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Type check + run: npx vue-tsc --noEmit