Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 44836eb

Browse files
committed
EM-385: Merge EM-385-fix-github-ci-for-sub-iot-stack to master
1 parent 9ea123a commit 44836eb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/github-ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Flash builds to devices
9191
run: |
9292
if $(lsof -i -P -n | grep -q JLinkExe) ; then exit 1; fi
93-
if pgrep -f "python2 run.py" ; then exit 1; fi
93+
if pgrep -f "python3 run.py" ; then exit 1; fi
9494
cd build/apps/modem
9595
JLinkExe -SelectEmuBySN 770821797 -CommandFile jlink-flash-full.script > flashOutput1.txt
9696
JLinkExe -SelectEmuBySN 772958091 -CommandFile jlink-flash-full.script > flashOutput2.txt
@@ -102,15 +102,12 @@ jobs:
102102
- name: Run testsuite
103103
run: |
104104
if $(lsof -i -P -n | grep -q JLinkExe) ; then exit 1; fi
105-
if pgrep -f "python2 run.py" ; then exit 1; fi
105+
if pgrep -f "python3 run.py" ; then exit 1; fi
106106
rm -rf Sub-IoT-testsuite
107107
git clone --recurse-submodules https://github.com/Sub-IoT/Sub-IoT-testsuite.git
108108
cd Sub-IoT-testsuite
109-
pip install -r requirements.txt
110-
cd lib/pyd7a/
111-
pip install -r requirements.txt
112-
cd ../..
113-
python2 run.py --serial-test-device=/dev/ttyUSB0 --serial-dut=/dev/ttyUSB1 -m "not band433 and not band915 and not known_issue" --junitxml report.xml -v
109+
python3 -m pip install -r requirements.txt -r lib/pyd7a/requirements.txt
110+
python3 run.py --serial-test-device=/dev/ttyUSB0 --serial-dut=/dev/ttyUSB1 -m "not band433 and not known_issue" --junitxml report.xml -v
114111
115112
- name: Upload test results
116113
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)