Skip to content

Phase 0: Forge the Foundation — full repo skeleton #1

Phase 0: Forge the Foundation — full repo skeleton

Phase 0: Forge the Foundation — full repo skeleton #1

Workflow file for this run

name: CI
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
jobs:
lint:
name: Lint (ruff + mypy)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dev dependencies
run: pip install -e ".[dev]"
- name: Ruff lint
run: ruff check src/ tests/
- name: Ruff format check
run: ruff format --check src/ tests/
- name: Mypy type check
run: mypy src/thoughtforge/
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install core + dev dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v --tb=short --cov=thoughtforge --cov-report=term-missing
- name: Upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false