Python: Bump Python version to 1.17.1 for a release. #4365
Workflow file for this run
This file contains 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@v4 | |
# Save the PR number to a file since the workflow_run event | |
# in the coverage report workflow does not have access to it | |
- name: Save PR number | |
run: | | |
echo ${{ github.event.number }} > ./pr_number | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
version: "0.5.x" | |
enable-cache: true | |
cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }} | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Test with pytest | |
run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered ./tests/unit | tee python-coverage.txt | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
python/python-coverage.txt | |
python/pytest.xml | |
python/pr_number | |
overwrite: true | |
retention-days: 1 | |
if-no-files-found: error |