Repository navigation
chore(deps): bump gitpython from 3.1.59 to 3.1.62 #74
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: | |
| pull_request: | |
| push: | |
| branches: [main, next, beta] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python }} | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Oldest supported (requires-python >=3.10), the main dev version, newest. | |
| python: ['3.10', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v10.2.0 | |
| with: | |
| version: 'latest' | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: uv sync --all-groups --python ${{ matrix.python }} | |
| - name: Lint | |
| run: uv run ruff check . | |
| - name: Typecheck | |
| run: uv run mypy src | |
| - name: Test | |
| run: uv run pytest | |
| package: | |
| name: Build package | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v10.2.0 | |
| with: | |
| version: 'latest' | |
| - name: uv build | |
| run: uv build | |
| - name: Check contents | |
| run: | | |
| ls -la dist | |
| python3 - <<'EOF' | |
| import sys, zipfile, glob | |
| whl = glob.glob("dist/*.whl")[0] | |
| names = zipfile.ZipFile(whl).namelist() | |
| print(len(names), "files in", whl) | |
| if not any(n.startswith("norbix_python/") for n in names): | |
| sys.exit("::error::norbix_python package missing from the wheel") | |
| leaked = [n for n in names if n.startswith(("tests/", "references/", "docs/"))] | |
| if leaked: | |
| sys.exit(f"::error::files that must not ship: {leaked}") | |
| EOF |