31 lines
831 B
YAML
31 lines
831 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check system
|
|
run: |
|
|
uname -a
|
|
cat /etc/os-release 2>/dev/null | head -5
|
|
- name: Install Python
|
|
run: |
|
|
if ! command -v python3 &> /dev/null; then
|
|
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
|
curl -sSL https://www.python.org/ftp/python/3.11.0/python-3.11.0-linux-x86_64.tar.gz -o python.tar.gz
|
|
tar -xzf python.tar.gz
|
|
export PATH="/app/python-3.11.0:$PATH"
|
|
fi
|
|
python3 --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 |