36 lines
724 B
YAML
36 lines
724 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Debug
|
|
run: |
|
|
echo "Starting CI..."
|
|
whoami
|
|
pwd
|
|
ls -la
|
|
- name: Check OS
|
|
run: |
|
|
cat /etc/os-release || echo "Not available"
|
|
- name: Install Python
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq python3 python3-pip
|
|
python3 --version
|
|
- name: Install deps
|
|
run: |
|
|
pip3 install -e ".[dev]" --quiet
|
|
- name: Lint
|
|
run: |
|
|
ruff check src/
|
|
- name: Type check
|
|
run: |
|
|
mypy src/
|
|
- name: Test
|
|
run: |
|
|
pytest tests/ -v |