Temp: test 1 #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PDR Plugin CI Workflow | |
on: | |
push: | |
paths: | |
- 'plugins/pdr_deterministic_plugin/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PYTHONPATH: '.:plugins/pdr_deterministic_plugin/ufm_sim_web_service' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@main | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r plugins/pdr_deterministic_plugin/requirements.txt | |
pip install pylint | |
pip install pytest pytest-cov | |
- name: Run PyLint | |
run: pylint --rcfile=plugins/pdr_deterministic_plugin/.pylintrc plugins/pdr_deterministic_plugin | |
- name: Run exclusion list class test | |
run: pytest plugins/pdr_deterministic_plugin/tests/exclude_list_class_tests.py | |
# - name: Test exclusion list REST API of pytest | |
# run: pytest plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py | |
- name: Run full simulation test | |
run: | | |
sudo bash plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh | |
echo "Starting simulated test" | |
python plugins/pdr_deterministic_plugin/tests/simulation_telemetry.py | |
echo "Terminating standalone PDR process" | |
pkill -9 -f isolation_algo.py 2>/dev/null || true |