diff --git a/.github/workflows/aimlapi.yml b/.github/workflows/aimlapi.yml index b8409dde09..6d137adfa6 100644 --- a/.github/workflows/aimlapi.yml +++ b/.github/workflows/aimlapi.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/aimlapi SUBPROJECT_ID: aimlapi - COMMENT_ARTIFACT_NAME: coverage-comment-aimlapi MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-aimlapi + path: python-coverage-comment-action-aimlapi.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/aimlapi SUBPROJECT_ID: aimlapi-combined - COMMENT_ARTIFACT_NAME: coverage-comment-aimlapi-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/amazon_bedrock.yml b/.github/workflows/amazon_bedrock.yml index faa3450066..48815927ff 100644 --- a/.github/workflows/amazon_bedrock.yml +++ b/.github/workflows/amazon_bedrock.yml @@ -94,18 +94,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/amazon_bedrock SUBPROJECT_ID: amazon_bedrock - COMMENT_ARTIFACT_NAME: coverage-comment-amazon_bedrock MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-amazon_bedrock + path: python-coverage-comment-action-amazon_bedrock.txt + # Do not authenticate on PRs from forks and on PRs created by dependabot - name: AWS authentication id: aws-auth @@ -126,7 +133,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/amazon_bedrock SUBPROJECT_ID: amazon_bedrock-combined - COMMENT_ARTIFACT_NAME: coverage-comment-amazon_bedrock-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/amazon_sagemaker.yml b/.github/workflows/amazon_sagemaker.yml index fe5d583ab8..7951e79abb 100644 --- a/.github/workflows/amazon_sagemaker.yml +++ b/.github/workflows/amazon_sagemaker.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/amazon_sagemaker SUBPROJECT_ID: amazon_sagemaker - COMMENT_ARTIFACT_NAME: coverage-comment-amazon_sagemaker MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-amazon_sagemaker + path: python-coverage-comment-action-amazon_sagemaker.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/amazon_sagemaker SUBPROJECT_ID: amazon_sagemaker-combined - COMMENT_ARTIFACT_NAME: coverage-comment-amazon_sagemaker-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/anthropic.yml b/.github/workflows/anthropic.yml index a07c7dbf5c..158143cde6 100644 --- a/.github/workflows/anthropic.yml +++ b/.github/workflows/anthropic.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/anthropic SUBPROJECT_ID: anthropic - COMMENT_ARTIFACT_NAME: coverage-comment-anthropic MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-anthropic + path: python-coverage-comment-action-anthropic.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/anthropic SUBPROJECT_ID: anthropic-combined - COMMENT_ARTIFACT_NAME: coverage-comment-anthropic-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/arcadedb.yml b/.github/workflows/arcadedb.yml index c7077e9567..eb45f4dc92 100644 --- a/.github/workflows/arcadedb.yml +++ b/.github/workflows/arcadedb.yml @@ -89,18 +89,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/arcadedb SUBPROJECT_ID: arcadedb - COMMENT_ARTIFACT_NAME: coverage-comment-arcadedb MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-arcadedb + path: python-coverage-comment-action-arcadedb.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -111,7 +118,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/arcadedb SUBPROJECT_ID: arcadedb-combined - COMMENT_ARTIFACT_NAME: coverage-comment-arcadedb-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/astra.yml b/.github/workflows/astra.yml index 99c5d89019..2271d15ad3 100644 --- a/.github/workflows/astra.yml +++ b/.github/workflows/astra.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/astra SUBPROJECT_ID: astra - COMMENT_ARTIFACT_NAME: coverage-comment-astra MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-astra + path: python-coverage-comment-action-astra.txt + - name: Run integration tests env: ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }} @@ -109,7 +116,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/astra SUBPROJECT_ID: astra-combined - COMMENT_ARTIFACT_NAME: coverage-comment-astra-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/azure_ai_search.yml b/.github/workflows/azure_ai_search.yml index ceb99b62e0..65cc1a0e40 100644 --- a/.github/workflows/azure_ai_search.yml +++ b/.github/workflows/azure_ai_search.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/azure_ai_search SUBPROJECT_ID: azure_ai_search - COMMENT_ARTIFACT_NAME: coverage-comment-azure_ai_search MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-azure_ai_search + path: python-coverage-comment-action-azure_ai_search.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/azure_ai_search SUBPROJECT_ID: azure_ai_search-combined - COMMENT_ARTIFACT_NAME: coverage-comment-azure_ai_search-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/azure_doc_intelligence.yml b/.github/workflows/azure_doc_intelligence.yml index 8cf3a210a1..62e1c4ea91 100644 --- a/.github/workflows/azure_doc_intelligence.yml +++ b/.github/workflows/azure_doc_intelligence.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/azure_doc_intelligence SUBPROJECT_ID: azure_doc_intelligence - COMMENT_ARTIFACT_NAME: coverage-comment-azure_doc_intelligence MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-azure_doc_intelligence + path: python-coverage-comment-action-azure_doc_intelligence.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/azure_doc_intelligence SUBPROJECT_ID: azure_doc_intelligence-combined - COMMENT_ARTIFACT_NAME: coverage-comment-azure_doc_intelligence-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/chroma.yml b/.github/workflows/chroma.yml index 6fc868b5e8..a5c57d6f8f 100644 --- a/.github/workflows/chroma.yml +++ b/.github/workflows/chroma.yml @@ -87,18 +87,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/chroma SUBPROJECT_ID: chroma - COMMENT_ARTIFACT_NAME: coverage-comment-chroma MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-chroma + path: python-coverage-comment-action-chroma.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -109,7 +116,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/chroma SUBPROJECT_ID: chroma-combined - COMMENT_ARTIFACT_NAME: coverage-comment-chroma-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/cohere.yml b/.github/workflows/cohere.yml index 9fae6d5945..dfad7bc765 100644 --- a/.github/workflows/cohere.yml +++ b/.github/workflows/cohere.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/cohere SUBPROJECT_ID: cohere - COMMENT_ARTIFACT_NAME: coverage-comment-cohere MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-cohere + path: python-coverage-comment-action-cohere.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/cohere SUBPROJECT_ID: cohere-combined - COMMENT_ARTIFACT_NAME: coverage-comment-cohere-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/cometapi.yml b/.github/workflows/cometapi.yml index 273bd70b7f..2e264f9f99 100644 --- a/.github/workflows/cometapi.yml +++ b/.github/workflows/cometapi.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/cometapi SUBPROJECT_ID: cometapi - COMMENT_ARTIFACT_NAME: coverage-comment-cometapi MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-cometapi + path: python-coverage-comment-action-cometapi.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/cometapi SUBPROJECT_ID: cometapi-combined - COMMENT_ARTIFACT_NAME: coverage-comment-cometapi-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/deepeval.yml b/.github/workflows/deepeval.yml index 42bac716f0..5844c45a27 100644 --- a/.github/workflows/deepeval.yml +++ b/.github/workflows/deepeval.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/deepeval SUBPROJECT_ID: deepeval - COMMENT_ARTIFACT_NAME: coverage-comment-deepeval MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-deepeval + path: python-coverage-comment-action-deepeval.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/deepeval SUBPROJECT_ID: deepeval-combined - COMMENT_ARTIFACT_NAME: coverage-comment-deepeval-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/docling.yml b/.github/workflows/docling.yml index 00d5db95ad..51c3efd348 100644 --- a/.github/workflows/docling.yml +++ b/.github/workflows/docling.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/docling SUBPROJECT_ID: docling - COMMENT_ARTIFACT_NAME: coverage-comment-docling MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-docling + path: python-coverage-comment-action-docling.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/docling SUBPROJECT_ID: docling-combined - COMMENT_ARTIFACT_NAME: coverage-comment-docling-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/dspy.yml b/.github/workflows/dspy.yml index dc59072574..4e6e0c0e5b 100644 --- a/.github/workflows/dspy.yml +++ b/.github/workflows/dspy.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/dspy SUBPROJECT_ID: dspy - COMMENT_ARTIFACT_NAME: coverage-comment-dspy MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-dspy + path: python-coverage-comment-action-dspy.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/dspy SUBPROJECT_ID: dspy-combined - COMMENT_ARTIFACT_NAME: coverage-comment-dspy-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/elasticsearch.yml b/.github/workflows/elasticsearch.yml index c879b07849..34386af9b4 100644 --- a/.github/workflows/elasticsearch.yml +++ b/.github/workflows/elasticsearch.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/elasticsearch SUBPROJECT_ID: elasticsearch - COMMENT_ARTIFACT_NAME: coverage-comment-elasticsearch MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-elasticsearch + path: python-coverage-comment-action-elasticsearch.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/elasticsearch SUBPROJECT_ID: elasticsearch-combined - COMMENT_ARTIFACT_NAME: coverage-comment-elasticsearch-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/faiss.yml b/.github/workflows/faiss.yml index 55efc3ea5b..29d095f708 100644 --- a/.github/workflows/faiss.yml +++ b/.github/workflows/faiss.yml @@ -79,18 +79,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/faiss SUBPROJECT_ID: faiss - COMMENT_ARTIFACT_NAME: coverage-comment-faiss MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-faiss + path: python-coverage-comment-action-faiss.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -101,7 +108,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/faiss SUBPROJECT_ID: faiss-combined - COMMENT_ARTIFACT_NAME: coverage-comment-faiss-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies diff --git a/.github/workflows/fastembed.yml b/.github/workflows/fastembed.yml index 12a5da023d..e688861570 100644 --- a/.github/workflows/fastembed.yml +++ b/.github/workflows/fastembed.yml @@ -71,18 +71,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/fastembed SUBPROJECT_ID: fastembed - COMMENT_ARTIFACT_NAME: coverage-comment-fastembed MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-fastembed + path: python-coverage-comment-action-fastembed.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -93,7 +100,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/fastembed SUBPROJECT_ID: fastembed-combined - COMMENT_ARTIFACT_NAME: coverage-comment-fastembed-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/firecrawl.yml b/.github/workflows/firecrawl.yml index b4a283020f..55bf0c77aa 100644 --- a/.github/workflows/firecrawl.yml +++ b/.github/workflows/firecrawl.yml @@ -79,18 +79,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/firecrawl SUBPROJECT_ID: firecrawl - COMMENT_ARTIFACT_NAME: coverage-comment-firecrawl MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-firecrawl + path: python-coverage-comment-action-firecrawl.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -101,7 +108,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/firecrawl SUBPROJECT_ID: firecrawl-combined - COMMENT_ARTIFACT_NAME: coverage-comment-firecrawl-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 20e4a428fe..0d71539ca1 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -82,18 +82,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/github SUBPROJECT_ID: github - COMMENT_ARTIFACT_NAME: coverage-comment-github MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-github + path: python-coverage-comment-action-github.txt + # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed - name: Run unit tests with lowest direct dependencies diff --git a/.github/workflows/google_genai.yml b/.github/workflows/google_genai.yml index 7e4dd26013..994453f563 100644 --- a/.github/workflows/google_genai.yml +++ b/.github/workflows/google_genai.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/google_genai SUBPROJECT_ID: google_genai - COMMENT_ARTIFACT_NAME: coverage-comment-google_genai MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-google_genai + path: python-coverage-comment-action-google_genai.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/google_genai SUBPROJECT_ID: google_genai-combined - COMMENT_ARTIFACT_NAME: coverage-comment-google_genai-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/hanlp.yml b/.github/workflows/hanlp.yml index a092083548..87cc08c51c 100644 --- a/.github/workflows/hanlp.yml +++ b/.github/workflows/hanlp.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/hanlp SUBPROJECT_ID: hanlp - COMMENT_ARTIFACT_NAME: coverage-comment-hanlp MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-hanlp + path: python-coverage-comment-action-hanlp.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/hanlp SUBPROJECT_ID: hanlp-combined - COMMENT_ARTIFACT_NAME: coverage-comment-hanlp-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/jina.yml b/.github/workflows/jina.yml index 28003fc17f..df883c3a9c 100644 --- a/.github/workflows/jina.yml +++ b/.github/workflows/jina.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/jina SUBPROJECT_ID: jina - COMMENT_ARTIFACT_NAME: coverage-comment-jina MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-jina + path: python-coverage-comment-action-jina.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/jina SUBPROJECT_ID: jina-combined - COMMENT_ARTIFACT_NAME: coverage-comment-jina-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/kreuzberg.yml b/.github/workflows/kreuzberg.yml index b2cb8bf635..94aaf267c7 100644 --- a/.github/workflows/kreuzberg.yml +++ b/.github/workflows/kreuzberg.yml @@ -83,7 +83,7 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' diff --git a/.github/workflows/langfuse.yml b/.github/workflows/langfuse.yml index 360c0fd48d..aff4b084fe 100644 --- a/.github/workflows/langfuse.yml +++ b/.github/workflows/langfuse.yml @@ -88,18 +88,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/langfuse SUBPROJECT_ID: langfuse - COMMENT_ARTIFACT_NAME: coverage-comment-langfuse MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-langfuse + path: python-coverage-comment-action-langfuse.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -110,7 +117,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/langfuse SUBPROJECT_ID: langfuse-combined - COMMENT_ARTIFACT_NAME: coverage-comment-langfuse-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/lara.yml b/.github/workflows/lara.yml index b168120a80..b9a3c07516 100644 --- a/.github/workflows/lara.yml +++ b/.github/workflows/lara.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/lara SUBPROJECT_ID: lara - COMMENT_ARTIFACT_NAME: coverage-comment-lara MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-lara + path: python-coverage-comment-action-lara.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/lara SUBPROJECT_ID: lara-combined - COMMENT_ARTIFACT_NAME: coverage-comment-lara-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/libreoffice.yml b/.github/workflows/libreoffice.yml index 888bb102db..fe8b099cc4 100644 --- a/.github/workflows/libreoffice.yml +++ b/.github/workflows/libreoffice.yml @@ -97,18 +97,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/libreoffice SUBPROJECT_ID: libreoffice - COMMENT_ARTIFACT_NAME: coverage-comment-libreoffice MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-libreoffice + path: python-coverage-comment-action-libreoffice.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -119,7 +126,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/libreoffice SUBPROJECT_ID: libreoffice-combined - COMMENT_ARTIFACT_NAME: coverage-comment-libreoffice-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/llama_cpp.yml b/.github/workflows/llama_cpp.yml index b41668844f..c38b902cee 100644 --- a/.github/workflows/llama_cpp.yml +++ b/.github/workflows/llama_cpp.yml @@ -82,18 +82,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/llama_cpp SUBPROJECT_ID: llama_cpp - COMMENT_ARTIFACT_NAME: coverage-comment-llama_cpp MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-llama_cpp + path: python-coverage-comment-action-llama_cpp.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,7 +111,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/llama_cpp SUBPROJECT_ID: llama_cpp-combined - COMMENT_ARTIFACT_NAME: coverage-comment-llama_cpp-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/llama_stack.yml b/.github/workflows/llama_stack.yml index 25357e67d5..40bd1cd404 100644 --- a/.github/workflows/llama_stack.yml +++ b/.github/workflows/llama_stack.yml @@ -146,18 +146,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/llama_stack SUBPROJECT_ID: llama_stack - COMMENT_ARTIFACT_NAME: coverage-comment-llama_stack MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-llama_stack + path: python-coverage-comment-action-llama_stack.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -168,7 +175,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/llama_stack SUBPROJECT_ID: llama_stack-combined - COMMENT_ARTIFACT_NAME: coverage-comment-llama_stack-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/markitdown.yml b/.github/workflows/markitdown.yml index ce0bf73fcb..9534ee072d 100644 --- a/.github/workflows/markitdown.yml +++ b/.github/workflows/markitdown.yml @@ -82,18 +82,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/markitdown SUBPROJECT_ID: markitdown - COMMENT_ARTIFACT_NAME: coverage-comment-markitdown MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-markitdown + path: python-coverage-comment-action-markitdown.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,7 +111,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/markitdown SUBPROJECT_ID: markitdown-combined - COMMENT_ARTIFACT_NAME: coverage-comment-markitdown-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml index eb2eee5e73..ab055c70ae 100644 --- a/.github/workflows/mcp.yml +++ b/.github/workflows/mcp.yml @@ -97,18 +97,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mcp SUBPROJECT_ID: mcp - COMMENT_ARTIFACT_NAME: coverage-comment-mcp MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-mcp + path: python-coverage-comment-action-mcp.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -119,7 +126,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mcp SUBPROJECT_ID: mcp-combined - COMMENT_ARTIFACT_NAME: coverage-comment-mcp-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/meta_llama.yml b/.github/workflows/meta_llama.yml index e785cd9c07..1265d772d4 100644 --- a/.github/workflows/meta_llama.yml +++ b/.github/workflows/meta_llama.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/meta_llama SUBPROJECT_ID: meta_llama - COMMENT_ARTIFACT_NAME: coverage-comment-meta_llama MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-meta_llama + path: python-coverage-comment-action-meta_llama.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/meta_llama SUBPROJECT_ID: meta_llama-combined - COMMENT_ARTIFACT_NAME: coverage-comment-meta_llama-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/mistral.yml b/.github/workflows/mistral.yml index 1057139fc1..9125d91882 100644 --- a/.github/workflows/mistral.yml +++ b/.github/workflows/mistral.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mistral SUBPROJECT_ID: mistral - COMMENT_ARTIFACT_NAME: coverage-comment-mistral MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-mistral + path: python-coverage-comment-action-mistral.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,7 +113,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mistral SUBPROJECT_ID: mistral-combined - COMMENT_ARTIFACT_NAME: coverage-comment-mistral-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/mongodb_atlas.yml b/.github/workflows/mongodb_atlas.yml index e96dca97a4..90ae50f605 100644 --- a/.github/workflows/mongodb_atlas.yml +++ b/.github/workflows/mongodb_atlas.yml @@ -80,18 +80,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mongodb_atlas SUBPROJECT_ID: mongodb_atlas - COMMENT_ARTIFACT_NAME: coverage-comment-mongodb_atlas MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-mongodb_atlas + path: python-coverage-comment-action-mongodb_atlas.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,7 +109,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/mongodb_atlas SUBPROJECT_ID: mongodb_atlas-combined - COMMENT_ARTIFACT_NAME: coverage-comment-mongodb_atlas-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/nvidia.yml b/.github/workflows/nvidia.yml index 1499ea02f1..0c521a9590 100644 --- a/.github/workflows/nvidia.yml +++ b/.github/workflows/nvidia.yml @@ -85,18 +85,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/nvidia SUBPROJECT_ID: nvidia - COMMENT_ARTIFACT_NAME: coverage-comment-nvidia MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-nvidia + path: python-coverage-comment-action-nvidia.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -107,7 +114,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/nvidia SUBPROJECT_ID: nvidia-combined - COMMENT_ARTIFACT_NAME: coverage-comment-nvidia-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 77217c1a46..e9340dcfd8 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -122,18 +122,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/ollama SUBPROJECT_ID: ollama - COMMENT_ARTIFACT_NAME: coverage-comment-ollama MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-ollama + path: python-coverage-comment-action-ollama.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -144,7 +151,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/ollama SUBPROJECT_ID: ollama-combined - COMMENT_ARTIFACT_NAME: coverage-comment-ollama-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/openrouter.yml b/.github/workflows/openrouter.yml index 90ad267f1d..9d653d061a 100644 --- a/.github/workflows/openrouter.yml +++ b/.github/workflows/openrouter.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/openrouter SUBPROJECT_ID: openrouter - COMMENT_ARTIFACT_NAME: coverage-comment-openrouter MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-openrouter + path: python-coverage-comment-action-openrouter.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/openrouter SUBPROJECT_ID: openrouter-combined - COMMENT_ARTIFACT_NAME: coverage-comment-openrouter-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/opensearch.yml b/.github/workflows/opensearch.yml index 4086a83f57..277805dc7f 100644 --- a/.github/workflows/opensearch.yml +++ b/.github/workflows/opensearch.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests (in parallel, using 4 cores) run: hatch run test:unit-cov-retry -n 4 # GA runner has 4 cores - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/opensearch SUBPROJECT_ID: opensearch - COMMENT_ARTIFACT_NAME: coverage-comment-opensearch MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-opensearch + path: python-coverage-comment-action-opensearch.txt + - name: Run integration tests (in parallel, using 4 cores) run: hatch run test:integration-cov-append-retry -n 4 # GA runner has 4 cores @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/opensearch SUBPROJECT_ID: opensearch-combined - COMMENT_ARTIFACT_NAME: coverage-comment-opensearch-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/optimum.yml b/.github/workflows/optimum.yml index 470fd94d79..27e6c5ac57 100644 --- a/.github/workflows/optimum.yml +++ b/.github/workflows/optimum.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/optimum SUBPROJECT_ID: optimum - COMMENT_ARTIFACT_NAME: coverage-comment-optimum MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-optimum + path: python-coverage-comment-action-optimum.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/optimum SUBPROJECT_ID: optimum-combined - COMMENT_ARTIFACT_NAME: coverage-comment-optimum-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/paddleocr.yml b/.github/workflows/paddleocr.yml index 612c019d16..259aa1634c 100644 --- a/.github/workflows/paddleocr.yml +++ b/.github/workflows/paddleocr.yml @@ -85,18 +85,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/paddleocr SUBPROJECT_ID: paddleocr - COMMENT_ARTIFACT_NAME: coverage-comment-paddleocr MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-paddleocr + path: python-coverage-comment-action-paddleocr.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -107,7 +114,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/paddleocr SUBPROJECT_ID: paddleocr-combined - COMMENT_ARTIFACT_NAME: coverage-comment-paddleocr-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/pgvector.yml b/.github/workflows/pgvector.yml index c0ff6d2dc5..aff5a67fe3 100644 --- a/.github/workflows/pgvector.yml +++ b/.github/workflows/pgvector.yml @@ -87,18 +87,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/pgvector SUBPROJECT_ID: pgvector - COMMENT_ARTIFACT_NAME: coverage-comment-pgvector MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-pgvector + path: python-coverage-comment-action-pgvector.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -109,7 +116,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/pgvector SUBPROJECT_ID: pgvector-combined - COMMENT_ARTIFACT_NAME: coverage-comment-pgvector-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/pinecone.yml b/.github/workflows/pinecone.yml index f5b8c3acc1..5a97457c0a 100644 --- a/.github/workflows/pinecone.yml +++ b/.github/workflows/pinecone.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/pinecone SUBPROJECT_ID: pinecone - COMMENT_ARTIFACT_NAME: coverage-comment-pinecone MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-pinecone + path: python-coverage-comment-action-pinecone.txt + - name: Run integration tests env: INDEX_NAME: ${{ matrix.INDEX_NAME }} @@ -107,7 +114,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/pinecone SUBPROJECT_ID: pinecone-combined - COMMENT_ARTIFACT_NAME: coverage-comment-pinecone-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/pyversity.yml b/.github/workflows/pyversity.yml index 3ccd29a345..67c2736408 100644 --- a/.github/workflows/pyversity.yml +++ b/.github/workflows/pyversity.yml @@ -72,18 +72,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/pyversity SUBPROJECT_ID: pyversity - COMMENT_ARTIFACT_NAME: coverage-comment-pyversity MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-pyversity + path: python-coverage-comment-action-pyversity.txt + # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed - name: Run unit tests with lowest direct dependencies diff --git a/.github/workflows/qdrant.yml b/.github/workflows/qdrant.yml index 3e3781129c..ec42df7ac3 100644 --- a/.github/workflows/qdrant.yml +++ b/.github/workflows/qdrant.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/qdrant SUBPROJECT_ID: qdrant - COMMENT_ARTIFACT_NAME: coverage-comment-qdrant MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-qdrant + path: python-coverage-comment-action-qdrant.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/qdrant SUBPROJECT_ID: qdrant-combined - COMMENT_ARTIFACT_NAME: coverage-comment-qdrant-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/ragas.yml b/.github/workflows/ragas.yml index f5fa7748e0..1d44b7ea1e 100644 --- a/.github/workflows/ragas.yml +++ b/.github/workflows/ragas.yml @@ -84,18 +84,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/ragas SUBPROJECT_ID: ragas - COMMENT_ARTIFACT_NAME: coverage-comment-ragas MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-ragas + path: python-coverage-comment-action-ragas.txt + # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed - name: Run unit tests with lowest direct dependencies diff --git a/.github/workflows/snowflake.yml b/.github/workflows/snowflake.yml index 9d367f179b..5472bf201d 100644 --- a/.github/workflows/snowflake.yml +++ b/.github/workflows/snowflake.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/snowflake SUBPROJECT_ID: snowflake - COMMENT_ARTIFACT_NAME: coverage-comment-snowflake MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-snowflake + path: python-coverage-comment-action-snowflake.txt + # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed - name: Run unit tests with lowest direct dependencies diff --git a/.github/workflows/stackit.yml b/.github/workflows/stackit.yml index e3705e6554..56473a4fbf 100644 --- a/.github/workflows/stackit.yml +++ b/.github/workflows/stackit.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/stackit SUBPROJECT_ID: stackit - COMMENT_ARTIFACT_NAME: coverage-comment-stackit MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-stackit + path: python-coverage-comment-action-stackit.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/stackit SUBPROJECT_ID: stackit-combined - COMMENT_ARTIFACT_NAME: coverage-comment-stackit-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/tavily.yml b/.github/workflows/tavily.yml index d4b3e4ad7c..f2b548d49e 100644 --- a/.github/workflows/tavily.yml +++ b/.github/workflows/tavily.yml @@ -82,18 +82,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/tavily SUBPROJECT_ID: tavily - COMMENT_ARTIFACT_NAME: coverage-comment-tavily MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-tavily + path: python-coverage-comment-action-tavily.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,7 +111,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/tavily SUBPROJECT_ID: tavily-combined - COMMENT_ARTIFACT_NAME: coverage-comment-tavily-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/togetherai.yml b/.github/workflows/togetherai.yml index 9ac95aa693..50069936a0 100644 --- a/.github/workflows/togetherai.yml +++ b/.github/workflows/togetherai.yml @@ -83,18 +83,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/togetherai SUBPROJECT_ID: togetherai - COMMENT_ARTIFACT_NAME: coverage-comment-togetherai MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-togetherai + path: python-coverage-comment-action-togetherai.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,7 +112,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/togetherai SUBPROJECT_ID: togetherai-combined - COMMENT_ARTIFACT_NAME: coverage-comment-togetherai-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/unstructured.yml b/.github/workflows/unstructured.yml index 71543e0604..cb61cb32f3 100644 --- a/.github/workflows/unstructured.yml +++ b/.github/workflows/unstructured.yml @@ -95,18 +95,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/unstructured SUBPROJECT_ID: unstructured - COMMENT_ARTIFACT_NAME: coverage-comment-unstructured MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-unstructured + path: python-coverage-comment-action-unstructured.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -117,7 +124,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/unstructured SUBPROJECT_ID: unstructured-combined - COMMENT_ARTIFACT_NAME: coverage-comment-unstructured-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/valkey.yml b/.github/workflows/valkey.yml index af81c060eb..06d303ad63 100644 --- a/.github/workflows/valkey.yml +++ b/.github/workflows/valkey.yml @@ -89,18 +89,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/valkey SUBPROJECT_ID: valkey - COMMENT_ARTIFACT_NAME: coverage-comment-valkey MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-valkey + path: python-coverage-comment-action-valkey.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -111,7 +118,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/valkey SUBPROJECT_ID: valkey-combined - COMMENT_ARTIFACT_NAME: coverage-comment-valkey-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/watsonx.yml b/.github/workflows/watsonx.yml index f69eb3bc33..6e43e84a92 100644 --- a/.github/workflows/watsonx.yml +++ b/.github/workflows/watsonx.yml @@ -85,18 +85,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/watsonx SUBPROJECT_ID: watsonx - COMMENT_ARTIFACT_NAME: coverage-comment-watsonx MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-watsonx + path: python-coverage-comment-action-watsonx.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -107,7 +114,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/watsonx SUBPROJECT_ID: watsonx-combined - COMMENT_ARTIFACT_NAME: coverage-comment-watsonx-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/weave.yml b/.github/workflows/weave.yml index 30ad0ba2e7..80202eac98 100644 --- a/.github/workflows/weave.yml +++ b/.github/workflows/weave.yml @@ -80,18 +80,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/weave SUBPROJECT_ID: weave - COMMENT_ARTIFACT_NAME: coverage-comment-weave MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-weave + path: python-coverage-comment-action-weave.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,7 +109,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/weave SUBPROJECT_ID: weave-combined - COMMENT_ARTIFACT_NAME: coverage-comment-weave-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/.github/workflows/weaviate.yml b/.github/workflows/weaviate.yml index 28dfd7b478..09c222771c 100644 --- a/.github/workflows/weaviate.yml +++ b/.github/workflows/weaviate.yml @@ -81,18 +81,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/weaviate SUBPROJECT_ID: weaviate - COMMENT_ARTIFACT_NAME: coverage-comment-weaviate MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-weaviate + path: python-coverage-comment-action-weaviate.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,7 +110,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/weaviate SUBPROJECT_ID: weaviate-combined - COMMENT_ARTIFACT_NAME: coverage-comment-weaviate-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 diff --git a/scripts/utils/templates/workflow.yml b/scripts/utils/templates/workflow.yml index 54e641e375..15e65bcb84 100644 --- a/scripts/utils/templates/workflow.yml +++ b/scripts/utils/templates/workflow.yml @@ -82,18 +82,25 @@ jobs: - name: Run unit tests run: hatch run test:unit-cov-retry - # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch. + # On PR: posts coverage comment (directly on same-repo PRs; via artifact for fork PRs). On push to main: stores coverage baseline on data branch. - name: Store unit tests coverage + id: coverage_comment if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule' uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40 with: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/$name SUBPROJECT_ID: $name - COMMENT_ARTIFACT_NAME: coverage-comment-$name MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60 + - name: Upload coverage comment to be posted + if: matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + with: + name: coverage-comment-$name + path: python-coverage-comment-action-$name.txt + - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,7 +111,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} COVERAGE_PATH: integrations/$name SUBPROJECT_ID: $name-combined - COMMENT_ARTIFACT_NAME: coverage-comment-$name-combined MINIMUM_GREEN: 90 MINIMUM_ORANGE: 60