Python: Add json schema handling. Add experimental tag to OpenAPI and Memory Connectors. #3344
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 Code Quality Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main", "feature*" ] | |
paths: | |
- 'python/**' | |
jobs: | |
ruff: | |
if: '!cancelled()' | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- run: echo "/root/.local/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install Semantic Kernel | |
run: cd python && poetry install --no-ansi | |
- name: Run ruff | |
run: cd python && poetry run ruff check . | |
black: | |
if: '!cancelled()' | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- run: echo "/root/.local/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install Semantic Kernel | |
run: cd python && poetry install --no-ansi | |
- name: Run black | |
run: cd python && poetry run black --check . | |
mypy: | |
if: '!cancelled()' | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- run: echo "/root/.local/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install Semantic Kernel | |
run: cd python && poetry install --no-ansi | |
- name: Run mypy | |
run: cd python && poetry run mypy -p semantic_kernel --config-file=mypy.ini | |