feat(cli): standardize --outdir/--seed; add smoke tests; Makefile & C… #194
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main, dev, chore/**, docs/**, feat/** ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| windows-py310: | |
| runs-on: windows-latest | |
| timeout-minutes: 20 | |
| env: | |
| PYTHONIOENCODING: utf-8 | |
| defaults: | |
| run: | |
| shell: pwsh | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| cache: pip | |
| - name: Install make (Chocolatey) | |
| run: choco install make -y | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if (Test-Path requirements.txt) { pip install -r requirements.txt } else { pip install numpy pandas statsmodels matplotlib scipy } | |
| if (Test-Path requirements-dev.txt) { pip install -r requirements-dev.txt } else { pip install ruff pytest } | |
| - name: Lint | |
| run: make lint | |
| - name: Tests | |
| run: make test | |
| - name: Tiny Chapter 13 smoke | |
| run: make ch13-ci | |
| - name: Upload artifacts (plots & data) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ch13-artifacts | |
| if-no-files-found: ignore | |
| path: | | |
| data/synthetic/** | |
| outputs/** |