2026-06-08 12:31:42 +01:00
|
|
|
---
|
|
|
|
|
name: ci
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
|
|
|
|
|
jobs:
|
2026-06-08 13:45:53 +01:00
|
|
|
lint_and_test:
|
2026-06-08 12:31:42 +01:00
|
|
|
runs-on: docker
|
|
|
|
|
container:
|
2026-06-08 14:09:06 +01:00
|
|
|
image: ghcr.io/astral-sh/uv:alpine
|
2026-06-08 12:31:42 +01:00
|
|
|
steps:
|
2026-06-08 14:45:54 +01:00
|
|
|
- run: apk add --no-cache nodejs npm git
|
2026-06-08 14:18:40 +01:00
|
|
|
- uses: actions/checkout@v4
|
2026-06-08 14:21:11 +01:00
|
|
|
with:
|
|
|
|
|
submodules: true
|
2026-06-08 12:31:42 +01:00
|
|
|
- run: uv python install # Gets Python version from pyproject.toml
|
|
|
|
|
- run: uv sync
|
2026-06-08 14:47:33 +01:00
|
|
|
- run: uv run ruff check
|
2026-06-08 12:31:42 +01:00
|
|
|
- run: uv run pytest test
|
|
|
|
|
env:
|
|
|
|
|
ENVIRONMENT: testing
|