-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (66 loc) · 2.06 KB
/
third_party_checks.yml
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
---
name: third_party_checks
'on':
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
generate_and_upload_coverage_data:
name: generate_and_upload_coverage_data
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate codecov.yml file
run: |
./validate_codecov_yml.sh
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install --with dev
- name: Generate coverage data
run: |
./generate_coverage_data.sh
- name: SonarCloud Scan
if: "! github.event.pull_request.head.repo.fork "
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage report to Codecov
if: "! github.event.pull_request.head.repo.fork "
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Upload coverage report to Codecov (tokenless)
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
- name: Upload coverage report to Codacy
if: "! github.event.pull_request.head.repo.fork "
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
- name: Upload coverage report as an artifact
uses: actions/upload-artifact@v4
with:
name: coverage_report
path: |
coverage.xml
htmlcov
if-no-files-found: error
retention-days: 5
...