rara/.gitea/workflows/ci.yaml
toki fdc86c7ff4
Some checks are pending
ci / validate (push) Waiting to run
initial commit
2026-07-18 18:41:17 +09:00

34 lines
947 B
YAML

name: ci
on:
push:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python worker
run: |
python -m venv .venv
.venv/bin/pip install -e 'packages/python[dev]'
- name: Verify generated SQL
run: |
go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.31.1
sqlc diff
- name: Go tests
run: go test ./...
- name: Python checks
run: |
.venv/bin/ruff format --check packages/python/src packages/python/tests
.venv/bin/ruff check packages/python/src packages/python/tests
PYTHONPATH=packages/python/src .venv/bin/pytest packages/python/tests
- name: Build services
run: make build