sort table #36
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: | |
| push: | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: Build | |
| run: uv build | |
| - name: Run tests | |
| run: uv run pytest tests | |
| - name: Verify version consistency | |
| run: | | |
| uv add PyYAML | |
| uv run python - <<'PY' | |
| import tomllib, yaml | |
| with open("pyproject.toml", "rb") as f: | |
| pkg_version = tomllib.load(f)["project"]["version"] | |
| with open("vesskel/napari.yaml") as f: | |
| manifest_version = yaml.safe_load(f)["version"] | |
| if pkg_version != manifest_version: | |
| raise SystemExit( | |
| f"Version mismatch: pyproject.toml={pkg_version}, " | |
| f"napari.yaml={manifest_version}" | |
| ) | |
| print(f"Versions consistent: {pkg_version}") | |
| PY |