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 <32426024+lucasssvaz@users.noreply.github.com>
This commit is contained in:
Jan Procházka 2024-07-31 13:16:43 +02:00 committed by GitHub
parent 9065342f53
commit 3a7eda1ef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 4 deletions

View file

@ -69,6 +69,10 @@ function run_test() {
if [[ -f "$sketchdir/scenario.yaml" ]]; then if [[ -f "$sketchdir/scenario.yaml" ]]; then
extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml" extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml"
fi fi
if [[ -f "$sketchdir/diagram.$target.json" ]]; then
extra_args+=" --wokwi-diagram $sketchdir/diagram.$target.json"
fi
elif [ $platform == "qemu" ]; then elif [ $platform == "qemu" ]; then
PATH=$HOME/qemu/bin:$PATH PATH=$HOME/qemu/bin:$PATH
extra_args="--embedded-services qemu --qemu-image-path $build_dir/$sketchname.ino.merged.bin" extra_args="--embedded-services qemu --qemu-image-path $build_dir/$sketchname.ino.merged.bin"

View file

@ -1,7 +1,7 @@
cryptography==42.0.7 cryptography==42.0.7
--only-binary cryptography --only-binary cryptography
pytest-cov==5.0.0 pytest-cov==5.0.0
pytest-embedded-serial-esp==1.10.2 pytest-embedded-serial-esp==1.11.0
pytest-embedded-arduino==1.10.2 pytest-embedded-arduino==1.11.0
pytest-embedded-wokwi==1.10.2 pytest-embedded-wokwi==1.11.0
pytest-embedded-qemu==1.10.2 pytest-embedded-qemu==1.11.0