Skip to content

docs(community): add community health files and GitHub config #10

docs(community): add community health files and GitHub config

docs(community): add community health files and GitHub config #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
server:
name: Server
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: oracy_test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U test -d oracy_test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync --frozen --extra dev
- name: Lint
run: uv run ruff check .
- name: Format check
run: uv run ruff format --check .
- name: Create PostgreSQL extensions
env:
PGPASSWORD: test
run: psql -h localhost -p 5433 -U test -d oracy_test -f database/init/01-extensions.sql
- name: Test with coverage
env:
TEST_DATABASE_URL: postgresql://test:test@localhost:5433/oracy_test
run: uv run pytest
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v4
with:
files: server/coverage.xml
flags: server
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
client:
name: Client
runs-on: ubuntu-latest
defaults:
run:
working-directory: client/flutter
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: dart analyze