-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.04 KB
/
coverage.yml
File metadata and controls
33 lines (30 loc) · 1.04 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
# Coverage Upload Workflow
# Downloads coverage artifacts from CI and uploads to Qlty for quality tracking.
# Triggers after the CI workflow succeeds so coverage is always in sync with CI.
name: Coverage (Qlty)
on:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [main, master]
workflow_dispatch:
inputs:
run-id:
description: 'CI workflow run ID to download coverage from'
required: false
type: string
permissions:
contents: read
actions: read
jobs:
upload-coverage:
name: Upload Coverage to Qlty
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ByronWilliamsCPA/.github/.github/workflows/python-qlty-coverage.yml@main
with:
coverage-artifact-name: coverage-reports
coverage-file-path: coverage.xml
workflow-run-id: ${{ github.event.workflow_run.id != null && github.event.workflow_run.id || '' }}
skip-if-no-token: true
secrets:
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}