1# Validates that a package's integration tests compile without syntax or import errors.2#3# (If an integration test fails to compile, it won't run.)4#5# Called as part of check_diffs.yml workflow6#7# Runs pytest with compile marker to check syntax/imports.89name: "๐ Compile Integration Tests"1011on:12 workflow_call:13 inputs:14 working-directory:15 required: true16 type: string17 description: "From which folder this pipeline executes"18 python-version:19 required: true20 type: string21 description: "Python version to use"2223permissions:24 contents: read2526env:27 UV_FROZEN: "true"2829jobs:30 build:31 defaults:32 run:33 working-directory: ${{ inputs.working-directory }}34 runs-on: ubuntu-latest35 timeout-minutes: 2036 name: "Python ${{ inputs.python-version }}"37 steps:38 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v63940 - name: "๐ Set up Python ${{ inputs.python-version }} + UV"41 uses: "./.github/actions/uv_setup"42 with:43 python-version: ${{ inputs.python-version }}44 cache-suffix: compile-integration-tests-${{ inputs.working-directory }}45 working-directory: ${{ inputs.working-directory }}4647 - name: "๐ฆ Install Integration Dependencies"48 shell: bash49 run: uv sync --group test --group test_integration5051 - name: "๐ Check Integration Tests Compile"52 shell: bash53 run: uv run pytest -m compile tests/integration_tests5455 - name: "๐งน Verify Clean Working Directory"56 shell: bash57 run: |58 set -eu5960 STATUS="$(git status)"61 echo "$STATUS"6263 # grep will exit non-zero if the target message isn't found,64 # and `set -e` above will cause the step to fail.65 echo "$STATUS" | grep 'nothing to commit, working tree clean'
Findings
✓ No findings reported for this file.