-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 1.46 KB
/
pdr_plugin_ci_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 single plugin instance on background as standalone
run: |
sudo bash plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh 2>/dev/null
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
# - name: Test exclude list with pytest
# run: pytest plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py #--doctest-modules --junitxml=junit/exclude_list_tests_results.xml --cov=com --cov-report=xml --cov-report=html
# - name: Kill plugin process
# run: |
# pkill -9 -f isolation_algo.py 2>/dev/null || true
# sleep 10