mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
ci: ekuiper codecov report
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user