-
Notifications
You must be signed in to change notification settings - Fork 246
82 lines (79 loc) · 2.46 KB
/
CI_coverage_comment.yml
File metadata and controls
82 lines (79 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Core / Add comment about test coverage to PRs
on:
workflow_run:
workflows:
- "Test / aimlapi"
- "Test / amazon-bedrock"
- "Test / amazon-sagemaker"
- "Test / anthropic"
- "Test / arcadedb"
- "Test / astra"
- "Test / azure_ai_search"
- "Test / azure_doc_intelligence"
- "Test / chroma"
- "Test / cohere"
- "Test / cometapi"
- "Test / deepeval"
- "Test / dspy"
- "Test / elasticsearch"
- "Test / faiss"
- "Test / fastembed"
- "Test / firecrawl"
- "Test / github"
- "Test / google-genai"
- "Test / hanlp"
- "Test / jina"
- "Test / kreuzberg"
- "Test / langfuse"
- "Test / lara"
- "Test / libreoffice"
- "Test / llama_cpp"
- "Test / llama_stack"
- "Test / markitdown"
- "Test / mcp"
- "Test / meta_llama"
- "Test / mistral"
- "Test / mongodb_atlas"
- "Test / nvidia"
- "Test / ollama"
- "Test / openrouter"
- "Test / opensearch"
- "Test / optimum"
- "Test / paddleocr"
- "Test / pgvector"
- "Test / pinecone"
- "Test / pyversity"
- "Test / qdrant"
- "Test / ragas"
- "Test / snowflake"
- "Test / sqlalchemy"
- "Test / stackit"
- "Test / tavily"
- "Test / togetherai"
- "Test / unstructured"
- "Test / valkey"
- "Test / vllm"
- "Test / watsonx"
- "Test / weave"
- "Test / weaviate"
types: [completed]
jobs:
comment:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Get integration name from workflow name
id: integration
run: |
# Workflow names follow "Test / <name>" convention; normalize hyphens to underscores to match directory names
echo "name=$(echo '${{ github.event.workflow_run.name }}' | sed 's/Test \/ //' | tr '-' '_')" >> "$GITHUB_OUTPUT"
- uses: py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40
with:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}
SUBPROJECT_ID: ${{ steps.integration.outputs.name }}
COMMENT_ARTIFACT_NAME: coverage-comment-${{ steps.integration.outputs.name }}
MINIMUM_GREEN: 90
MINIMUM_ORANGE: 60