Repository navigation
Python: resolve forward references nested in generic aliases when building schemas #6914
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: Python Test Coverage | |
| on: | |
| pull_request: | |
| branches: ["main", "feature*"] | |
| paths: | |
| - "python/semantic_kernel/**" | |
| - "python/tests/unit/**" | |
| env: | |
| # Configure a constant location for the uv cache | |
| UV_CACHE_DIR: /tmp/.uv-cache | |
| jobs: | |
| python-tests-coverage: | |
| runs-on: ubuntu-latest | |
| continue-on-error: false | |
| defaults: | |
| run: | |
| working-directory: python | |
| env: | |
| UV_PYTHON: "3.10" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| version: "0.5.x" | |
| enable-cache: true | |
| cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }} | |
| cache-dependency-glob: "**/uv.lock" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev -U --prerelease=if-necessary-or-explicit | |
| - name: Test with pytest | |
| run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered --cov-report=xml:python-coverage.xml ./tests/unit --ignore=./tests/unit/processes/dapr_runtime | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: python-test-coverage | |
| path: | | |
| python/python-coverage.xml | |
| python/pytest.xml | |
| overwrite: true | |
| retention-days: 1 | |
| if-no-files-found: error |