Skip to content

Commit 3a7eda1

Browse files
ci(wokwi): Pass diagram.json file if exists to pytest (#9720)
* ci(wokwi): Pass diagram.json file if exists to pytest * ci(wokwi): Rename diagrams to enable editing in Wokwi editor * ci(tests): Use newest pytest version --------- Co-authored-by: Lucas Saavedra Vaz <[email protected]>
1 parent 9065342 commit 3a7eda1

8 files changed

+8
-4
lines changed

Diff for: .github/scripts/tests_run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ function run_test() {
6969
if [[ -f "$sketchdir/scenario.yaml" ]]; then
7070
extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml"
7171
fi
72+
if [[ -f "$sketchdir/diagram.$target.json" ]]; then
73+
extra_args+=" --wokwi-diagram $sketchdir/diagram.$target.json"
74+
fi
75+
7276
elif [ $platform == "qemu" ]; then
7377
PATH=$HOME/qemu/bin:$PATH
7478
extra_args="--embedded-services qemu --qemu-image-path $build_dir/$sketchname.ino.merged.bin"

Diff for: tests/requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cryptography==42.0.7
22
--only-binary cryptography
33
pytest-cov==5.0.0
4-
pytest-embedded-serial-esp==1.10.2
5-
pytest-embedded-arduino==1.10.2
6-
pytest-embedded-wokwi==1.10.2
7-
pytest-embedded-qemu==1.10.2
4+
pytest-embedded-serial-esp==1.11.0
5+
pytest-embedded-arduino==1.11.0
6+
pytest-embedded-wokwi==1.11.0
7+
pytest-embedded-qemu==1.11.0
File renamed without changes.

0 commit comments

Comments
 (0)