mirror of
https://github.com/emqx/neuron.git
synced 2026-10-16 20:30:39 +08:00
move unused drivers to manual check workflow
This commit is contained in:
@@ -107,7 +107,7 @@ jobs:
|
|||||||
needs: [build]
|
needs: [build]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
plugin: [core, ekuiper, modbus, mqtt, azure, metrics, launch]
|
plugin: [core, ekuiper, modbus, mqtt, metrics]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -146,16 +146,11 @@ jobs:
|
|||||||
pytest -s -v tests/ft/driver/"test_modbus.py"
|
pytest -s -v tests/ft/driver/"test_modbus.py"
|
||||||
elif [ "${{ matrix.plugin }}" = "mqtt" ]; then
|
elif [ "${{ matrix.plugin }}" = "mqtt" ]; then
|
||||||
pytest -s -v tests/ft/app/"test_mqtt.py"
|
pytest -s -v tests/ft/app/"test_mqtt.py"
|
||||||
elif [ "${{ matrix.plugin }}" = "azure" ]; then
|
|
||||||
pytest -s -v tests/ft/app/"test_azure.py"
|
|
||||||
#elif [ "${{ matrix.plugin }}" = "launch" ]; then
|
|
||||||
#pytest -s -v tests/ft/login
|
|
||||||
else
|
else
|
||||||
pytest -s -v tests/ft/metrics/"test_metrics.py"
|
pytest -s -v tests/ft/metrics/"test_metrics.py"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: create cov report
|
- name: create cov report
|
||||||
if: ${{ matrix.plugin != 'launch' }}
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install lcov
|
sudo apt-get -y install lcov
|
||||||
@@ -164,7 +159,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
if: ${{ matrix.plugin != 'launch' }}
|
|
||||||
with:
|
with:
|
||||||
verbose: true
|
verbose: true
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
name: manual check
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
plugins:
|
||||||
|
description: 'Comma separated list of plugins to test (default: all unused plugins)'
|
||||||
|
required: false
|
||||||
|
default: 'azure,launch'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container: ghcr.io/neugates/build:x86_64-main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: compile
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory $(pwd)
|
||||||
|
mkdir -p build && cd build
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
|
||||||
|
make -j4
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: neuron-build-unused-plugins
|
||||||
|
path: |
|
||||||
|
build
|
||||||
|
|
||||||
|
unused_plugins_test:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container: ghcr.io/neugates/build:x86_64-main
|
||||||
|
needs: [build]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
plugin: [azure, launch]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: setup dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y mosquitto
|
||||||
|
pip install -U pytest requests prometheus-client gmqtt pynng sniffio
|
||||||
|
sudo apt-get install -y socat
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: neuron-build-unused-plugins
|
||||||
|
path: ./build
|
||||||
|
|
||||||
|
- name: function test
|
||||||
|
run: |
|
||||||
|
chmod -R +x ./build/
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
|
||||||
|
cd ..
|
||||||
|
if [ "${{ matrix.plugin }}" = "azure" ]; then
|
||||||
|
pytest -s -v tests/ft/app/"test_azure.py"
|
||||||
|
elif [ "${{ matrix.plugin }}" = "launch" ]; then
|
||||||
|
pytest -s -v tests/ft/login
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Test completed
|
||||||
|
run: |
|
||||||
|
echo "Testing for ${{ matrix.plugin }} completed successfully"
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
ignore:
|
ignore:
|
||||||
- "src/otel/*.pb-c.c"
|
- "src/otel/*.pb-c.c"
|
||||||
|
- "plugins/mqtt/azure_iot_plugin.c"
|
||||||
coverage:
|
coverage:
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
|
|||||||
Reference in New Issue
Block a user