Skip to content

ci: add quick cross-platform test workflow (ubuntu + windows, py3.12) #1

ci: add quick cross-platform test workflow (ubuntu + windows, py3.12)

ci: add quick cross-platform test workflow (ubuntu + windows, py3.12) #1

Workflow file for this run

name: CI
# Quick test CI: runs the stdlib-unittest suite on both supported platforms
# (Windows + Linux is a load-bearing requirement — see CLAUDE.md). The suite is
# pure logic (text cleanup, loop collapse, batch accounting) and needs neither
# Tesseract nor a running Ollama, so it stays fast.
on:
push:
branches: [main]
pull_request:
branches: [main]
# Cancel superseded runs on the same ref so a rapid series of pushes doesn't
# queue redundant jobs.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["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
cache-dependency-path: requirements.txt
- name: Install runtime dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run test suite
run: python -m unittest discover -s tests -v