Python: Bump Python version to 1.16.0 for a release. #5105
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 Code Quality Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main", "feature*" ] | |
paths: | |
- 'python/**' | |
jobs: | |
pre-commit: | |
if: '!cancelled()' | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
defaults: | |
run: | |
working-directory: python | |
env: | |
# Configure a constant location for the uv cache | |
UV_CACHE_DIR: /tmp/.uv-cache | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.30" | |
enable-cache: true | |
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- uses: pre-commit/[email protected] | |
name: Run Pre-Commit Hooks | |
with: | |
extra_args: --config python/.pre-commit-config.yaml --all-files | |
- name: Run Mypy | |
run: uv run mypy -p semantic_kernel --config-file mypy.ini | |
- name: Minimize uv cache | |
run: uv cache prune --ci |