22
22
with :
23
23
fetch-depth : 0
24
24
25
- - name : run commit title format check
25
+ - name : Check commit title format
26
26
run : |
27
27
./tools/ci/check_for_commit_message.sh
28
28
47
47
node-version : 20
48
48
cache : ' npm'
49
49
50
- - name : compile
50
+ - name : Build Hue
51
51
run : |
52
52
sudo apt-get update
53
53
sudo apt-get install -y gcc g++ build-essential python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python${{ matrix.python-version }}-distutils asciidoc rsync curl sudo libkrb5-dev libldap2-dev libsasl2-dev libxml2-dev libxslt-dev libsasl2-modules-gssapi-mit libsnappy-dev libffi-dev # This should not be needed as some point
@@ -59,23 +59,32 @@ jobs:
59
59
export ROOT=$PWD
60
60
make test_prep
61
61
62
- - name : run tests
62
+ - name : Run python unit tests
63
63
run : |
64
64
./build/env/bin/pytest
65
65
66
- - name : upload pytest report
67
- uses : actions/upload-artifact@v4
68
- with :
69
- name : hue-pytest-report-${{ matrix.python-version }}
70
- path : reports/pytest
71
-
72
- - name : upload code coverage report
66
+ - name : Upload pytest and code coverage reports
67
+ if : matrix.python-version == '3.11'
73
68
uses : actions/upload-artifact@v4
74
69
with :
75
- name : hue-code-cov-report-${{ matrix.python-version }}
76
- path : reports/code-cov
70
+ name : hue-test-reports
71
+ path : ./reports
77
72
78
- - name : Check and comment if no unit test files are modified
73
+ - name : Add pytest and code coverage PR comment
74
+ if : matrix.python-version == '3.11'
75
+ uses : MishaKav/pytest-coverage-comment@v1
76
+ with :
77
+ pytest-xml-coverage-path : ./reports/code-cov/coverage.xml
78
+ junitxml-path : ./reports/pytest/test_report.xml
79
+ junitxml-title : Pytest Report
80
+ title : Backend Code Coverage Report
81
+ badge-title : Backend Codecov
82
+ report-only-changed-files : true
83
+ xml-skip-covered : true
84
+ remove-link-from-badge : true
85
+ default-branch : master
86
+
87
+ - name : Check and comment if no unit test files modified
79
88
if : matrix.python-version == '3.11'
80
89
run : |
81
90
git fetch origin master
@@ -93,11 +102,11 @@ jobs:
93
102
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
94
103
fi
95
104
96
- - name : run python lints
105
+ - name : Run python lints
97
106
run : |
98
107
PYTHONWARNINGS=always ./build/env/bin/hue runruff check
99
108
100
- - name : run documentation lints
109
+ - name : Run documentation lints
101
110
run : |
102
111
curl -O https://dl.google.com/go/go1.23.4.linux-amd64.tar.gz
103
112
tar -xvf go1.23.4.linux-amd64.tar.gz
0 commit comments