bim-twin-viewer/.forgejo/workflows/ci.yml
warnason 5cb6f1403b Initial project scaffold: FastAPI backend + Vue.js frontend
- FastAPI with async SQLAlchemy models for IFC elements
- IFC file upload and parsing via IfcOpenShell
- REST API for projects, elements, and properties
- Vue.js 3 frontend shell with Three.js dependency
- Docker Compose for full-stack local development
- PostgreSQL 16 as database
- CI pipeline for Forgejo Actions
- Project documentation and API overview
2026-04-20 18:01:12 +02:00

35 lines
698 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
backend-lint-and-test:
runs-on: docker
container:
image: python:3.12-slim
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: bim
POSTGRES_PASSWORD: testpassword
POSTGRES_DB: bim_test
env:
DATABASE_URL: postgresql+asyncpg://bim:testpassword@postgres:5432/bim_test
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
cd backend
pip install -r requirements.txt
- name: Run tests
run: |
cd backend
python -m pytest -v