Add spatial shrinkage and ORF validation #21
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: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.12"] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install package and development tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Run tests | |
| run: python -m pytest tests/ -q | |
| - name: Check formatting | |
| if: matrix.python-version == '3.12' | |
| run: >- | |
| python -m black --check klrfome tests examples | |
| benchmarks/run_section6_sensitivity.py benchmarks/run_synthetic_methods_lab.py | |
| - name: Run Ruff | |
| if: matrix.python-version == '3.12' | |
| run: >- | |
| python -m ruff check klrfome tests examples | |
| benchmarks/run_section6_sensitivity.py benchmarks/run_synthetic_methods_lab.py | |
| - name: Run Mypy | |
| if: matrix.python-version == '3.12' | |
| run: python -m mypy klrfome | |
| - name: Execute README smoke workflow | |
| if: matrix.python-version == '3.12' | |
| run: python examples/readme_quickstart.py | |
| - name: Execute synthetic laboratory smoke workflow | |
| if: matrix.python-version == '3.12' | |
| run: >- | |
| python benchmarks/run_synthetic_methods_lab.py | |
| --config benchmarks/synthetic_lab_smoke_config.json | |
| --output /tmp/klrfome_synthetic_smoke.json |