kaizen-agentic/.gitea/workflows/ci.yml

38 lines
1 KiB
YAML

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: haskelseed
steps:
- name: Check out source
env:
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
run: |
git clone --depth 1 \
"https://tegwick:${PACKAGE_TOKEN}@gitea.coulomb.social/coulomb/kaizen-agentic.git" \
repo
cd repo
git checkout "${{ gitea.sha }}"
- name: Install package and dev tools
run: |
cd repo
python3 -m ensurepip --upgrade 2>/dev/null || \
curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && python3 /tmp/get-pip.py
python3 -m pip install --upgrade pip
python3 -m pip install -e ".[dev]"
- name: Format check (black)
run: cd repo && black --check src tests
- name: Lint (flake8)
run: cd repo && flake8 src/ --max-line-length=100
- name: Run tests
run: cd repo && pytest tests/ -q --ignore=tests/test_cli_error_handling.py