Some checks failed
ci / test (push) Failing after 6s
Replace actions/checkout and setup-python with internal git clone and system python3. Drops CI matrix to a single job on the self-hosted runner.
37 lines
898 B
YAML
37 lines
898 B
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 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
|