Skip to content

docs: update README for v0.6.0 unified release #37

docs: update README for v0.6.0 unified release

docs: update README for v0.6.0 unified release #37

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
exclude:
# Run full matrix on Linux; macOS gets one smoke-test per minor version
- os: macos-latest
python-version: "3.10"
- os: macos-latest
python-version: "3.11"
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 OpenMP runtime (macOS)
if: runner.os == 'macOS'
run: brew install libomp
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Verify C compiler
run: gcc --version || clang --version
- name: Run tests with coverage
run: pytest tests/ -v --tb=short --cov=timber --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
fail_ci_if_error: false
- name: Verify import
run: python -c "import timber; print(f'Timber v{timber.__version__} OK')"
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install ruff
run: pip install ruff
- name: Lint with ruff
run: ruff check timber/
- name: Check syntax (all modules)
run: |
python -m py_compile timber/cli.py timber/store.py timber/serve.py \
timber/downloader.py timber/ui.py timber/runtime/predictor.py