-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (57 loc) · 2.07 KB
/
report.yml
File metadata and controls
68 lines (57 loc) · 2.07 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
name: Status Report
on:
workflow_call:
jobs:
report:
runs-on: "ubuntu-24.04"
permissions:
contents: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out Repository
id: check-out-repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python & Poetry Environment
id: set-up-python-and-poetry-environment
uses: exasol/python-toolbox/.github/actions/python-environment@v6
with:
python-version: "3.10"
poetry-version: "2.3.0"
- name: Download Artifacts
id: download-artifacts
uses: actions/download-artifact@v8
with:
path: ./artifacts
- name: Copy Artifacts into Root Folder
id: copy-artifacts-into-root-folder
run: poetry run -- nox -s artifacts:copy -- artifacts
- name: Validate Artifacts
id: validate-artifacts
run: poetry run -- nox -s artifacts:validate
- name: Upload to Sonar
id: upload-to-sonar
env:
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
run: poetry run -- nox -s sonar:check
- name: Generate Report
id: generate-report
run: poetry run -- nox -s project:report -- --format json | tee metrics.json
- name: Upload Artifacts
id: upload-artifacts
uses: actions/upload-artifact@v7
with:
name: metrics.json
path: metrics.json
- name: Generate GitHub Summary
id: generate-github-summary
run: |-
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
poetry run -- nox -s project:report -- --format markdown >> $GITHUB_STEP_SUMMARY
poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
poetry run -- coverage report --format markdown >> $GITHUB_STEP_SUMMARY || true
poetry run -- tbx lint pretty-print >> $GITHUB_STEP_SUMMARY
poetry run -- tbx security pretty-print .security.json >> $GITHUB_STEP_SUMMARY