[grading] Pin pandoc 3.11 and stop grading .docx output without pando… #22
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: Python checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| static-checks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.12" | |
| - run: uv sync --locked | |
| - name: Lint Python | |
| run: uv run --no-sync ruff check . | |
| - name: Check host package types | |
| run: uv run --no-sync pyright | |
| installed-wheel: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Build wheel | |
| run: uv build --wheel | |
| - name: Install wheel with runtime dependencies only | |
| run: | | |
| uv venv --python "${{ matrix.python-version }}" "$RUNNER_TEMP/wheel-venv" | |
| uv pip install --python "$RUNNER_TEMP/wheel-venv/bin/python" dist/*.whl | |
| uv pip check --python "$RUNNER_TEMP/wheel-venv/bin/python" | |
| - name: Exercise imports and document converters outside the checkout | |
| working-directory: ${{ runner.temp }} | |
| run: env -u LAB_ROOT -u PYTHONPATH "$RUNNER_TEMP/wheel-venv/bin/python" -I "$GITHUB_WORKSPACE/tests/test_package_smoke.py" |