27 lines
597 B
YAML
27 lines
597 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Python
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update -qq
|
|
apt-get install -y --no-install-recommends python3 python3-pip
|
|
- name: Verify Python
|
|
run: |
|
|
python3 --version
|
|
pip3 --version
|
|
- name: Install deps
|
|
run: pip3 install -e ".[dev]"
|
|
- name: Lint
|
|
run: ruff check src/
|
|
- name: Type check
|
|
run: mypy src/
|
|
- name: Test
|
|
run: pytest tests/ -v |