ci: ekuiper codecov report

This commit is contained in:
eeff
2023-12-15 17:24:14 +08:00
parent 3658fdeb99
commit 5cb0927ff2
2 changed files with 9 additions and 3 deletions
+5 -3
View File
@@ -127,7 +127,7 @@ jobs:
container: ghcr.io/neugates/build:x86_64-main
strategy:
matrix:
plugin: [core, modbus, mqtt, metrics]
plugin: [core, ekuiper, modbus, mqtt, metrics]
steps:
- uses: actions/checkout@v4
@@ -138,9 +138,8 @@ jobs:
run: |
if [ "${{ matrix.plugin }}" = "mqtt" ]; then
sudo apt-get install -y mosquitto
pip install -U gmqtt
fi
pip install -U pytest requests prometheus-client
pip install -U pytest requests prometheus-client gmqtt pynng
- name: compile
run: |
@@ -153,9 +152,12 @@ jobs:
run: |
if [ "${{ matrix.plugin }}" = "core" ]; then
pytest -s -v tests/ft \
--ignore=tests/ft/app/test_ekuiper.py \
--ignore=tests/ft/app/test_mqtt.py \
--ignore=tests/ft/driver/test_modbus.py \
--ignore=tests/ft/metrics/test_metrics.py
elif [ "${{ matrix.plugin }}" = "ekuiper" ]; then
pytest -s -v tests/ft/app/"test_ekuiper.py"
elif [ "${{ matrix.plugin }}" = "modbus" ]; then
pytest -s -v tests/ft/driver/"test_modbus.py"
elif [ "${{ matrix.plugin }}" = "mqtt" ]; then
+4
View File
@@ -11,6 +11,10 @@ function gen_trace () {
}
case $1 in
(ekuiper)
lcov -c -d build/plugins/ekuiper/CMakeFiles/plugin-ekuiper.dir -o cov_report/cov-ekuiper.info
cd cov_report
gen_trace -a cov-ekuiper.info -o cov-ekuiper.info;;
(modbus)
lcov -c -d build/plugins/modbus/CMakeFiles/plugin-modbus-rtu.dir -o cov_report/cov-modbus-rtu.info
lcov -c -d build/plugins/modbus/CMakeFiles/plugin-modbus-tcp.dir -o cov_report/cov-modbus-tcp.info