-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
1,165 additions
and
3,863 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
name: Python Test Coverage | ||
|
||
on: | ||
pull_request_target: | ||
pull_request: | ||
branches: ["main", "feature*"] | ||
paths: | ||
- "python/**" | ||
workflow_run: | ||
workflows: ["Python Unit Tests"] | ||
types: | ||
- in_progress | ||
- "python/semantic_kernel/**" | ||
- "python/tests/unit/**" | ||
env: | ||
# Configure a constant location for the uv cache | ||
UV_CACHE_DIR: /tmp/.uv-cache | ||
|
||
permissions: | ||
contents: write | ||
checks: write | ||
pull-requests: write | ||
|
||
jobs: | ||
python-tests-coverage: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
permissions: | ||
pull-requests: write | ||
contents: read | ||
actions: read | ||
continue-on-error: false | ||
defaults: | ||
run: | ||
working-directory: python | ||
env: | ||
UV_PYTHON: "3.10" | ||
steps: | ||
- name: Wait for unit tests to succeed | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
check-name: 'Python Test Coverage' | ||
repo-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} | ||
wait-interval: 90 | ||
allowed-conclusions: success | ||
- uses: actions/checkout@v4 | ||
- name: Setup filename variables | ||
run: echo "FILE_ID=${{ github.event.number }}" >> $GITHUB_ENV | ||
- name: Download Files | ||
uses: actions/download-artifact@v4 | ||
- name: Set up uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
path: python/ | ||
merge-multiple: true | ||
- name: Display structure of downloaded files | ||
run: ls python/ | ||
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: Pytest coverage comment | ||
id: coverageComment | ||
uses: MishaKav/pytest-coverage-comment@main | ||
continue-on-error: true | ||
continue-on-error: false | ||
with: | ||
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} | ||
pytest-coverage-path: python-coverage.txt | ||
pytest-coverage-path: python/python-coverage.txt | ||
coverage-path-prefix: "python/" | ||
title: "Python Test Coverage Report" | ||
badge-title: "Python Test Coverage" | ||
junitxml-title: "Python Unit Test Overview" | ||
junitxml-path: pytest.xml | ||
junitxml-path: python/pytest.xml | ||
default-branch: "main" | ||
unique-id-for-comment: python-test-coverage | ||
report-only-changed-files: true |
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
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
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
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
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
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
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
71 changes: 0 additions & 71 deletions
71
dotnet/src/Connectors/Connectors.OpenAI/Core/OpenAIJsonSchemaTransformer.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.