test: Tier 0-2 scaffolding (shell syntax, imports, entrypoints, runner metadata) #39
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 (develop) | |
| # Lightweight PR-time test suite that actually gates merges into develop. | |
| # Runs the unit tests under tests/ inside the published shapepipe container | |
| # — no conda bootstrap, no multi-OS matrix. Complements ci-release.yml | |
| # (which is a heavier conda-based suite gating main/master). | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| unit: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/cosmostat/shapepipe:develop | |
| options: --user root | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Reinstall shapepipe from the checkout | |
| # The container ships a snapshot of the repo under /app. Replace it | |
| # with the PR's checkout so tests run against the proposed code. | |
| run: | | |
| pip install --no-deps --force-reinstall -e . | |
| - name: Run unit tests | |
| run: | | |
| pytest tests/unit/ -v --no-cov -p no:warnings |