50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
quality:
|
|
name: Quality Checks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
- name: Install Python from .python-version
|
|
run: $HOME/.local/bin/uv python install
|
|
|
|
- name: Sync development dependencies
|
|
run: $HOME/.local/bin/uv sync --group dev
|
|
|
|
- name: Run quality checks
|
|
run: PATH="$HOME/.local/bin:$PATH" make ci-check
|
|
|
|
tests:
|
|
name: Test Suite
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
- name: Install Python from .python-version
|
|
run: $HOME/.local/bin/uv python install
|
|
|
|
- name: Sync development dependencies
|
|
run: $HOME/.local/bin/uv sync --group dev
|
|
|
|
- name: Run tests
|
|
run: PATH="$HOME/.local/bin:$PATH" make test |