diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fc707f0f..a7487af0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -81,7 +81,7 @@ jobs: container: ghcr.io/neugates/build:x86_64-main strategy: matrix: - plugin: [core, ekuiper, modbus, mqtt, metrics] + plugin: [core, ekuiper, modbus, mqtt, azure, metrics] steps: - uses: actions/checkout@v4 @@ -90,7 +90,7 @@ jobs: - name: setup dependencies run: | - if [ "${{ matrix.plugin }}" = "mqtt" ]; then + if [ "${{ matrix.plugin }}" = "mqtt" ] || [ "${{ matrix.plugin }}" = "azure" ]; then sudo apt-get install -y mosquitto fi pip install -U pytest requests prometheus-client gmqtt pynng sniffio @@ -109,6 +109,7 @@ jobs: pytest -s -v tests/ft \ --ignore=tests/ft/app/test_ekuiper.py \ --ignore=tests/ft/app/test_mqtt.py \ + --ignore=tests/ft/app/test_azure.py \ --ignore=tests/ft/driver/test_modbus.py \ --ignore=tests/ft/metrics/test_metrics.py elif [ "${{ matrix.plugin }}" = "ekuiper" ]; then @@ -117,6 +118,8 @@ jobs: pytest -s -v tests/ft/driver/"test_modbus.py" elif [ "${{ matrix.plugin }}" = "mqtt" ]; then pytest -s -v tests/ft/app/"test_mqtt.py" + elif [ "${{ matrix.plugin }}" = "azure" ]; then + pytest -s -v tests/ft/app/"test_azure.py" else pytest -s -v tests/ft/metrics/"test_metrics.py" fi diff --git a/create_cov_report.sh b/create_cov_report.sh index f8817b3d..a1e49f77 100755 --- a/create_cov_report.sh +++ b/create_cov_report.sh @@ -39,6 +39,10 @@ case $1 in lcov -c -d build/plugins/mqtt/CMakeFiles/plugin-mqtt.dir -o cov_report/cov-mqtt.info cd cov_report gen_trace -a cov-mqtt.info -o cov-mqtt.info;; + (azure) + lcov -c -d build/plugins/mqtt/CMakeFiles/plugin-azure-iot.dir -o cov_report/cov-azure.info + cd cov_report + gen_trace -a cov-azure.info -o cov-azure.info;; (core) cd cov_report gen_trace -o cov-core.info;;