Skip to content

Commit

Permalink
ci(wokwi): Pass diagram.json file if exists to pytest (#9720)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
P-R-O-C-H-Y and lucasssvaz authored Jul 31, 2024
1 parent 9065342 commit 3a7eda1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ function run_test() {
if [[ -f "$sketchdir/scenario.yaml" ]]; then
extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml"
fi
if [[ -f "$sketchdir/diagram.$target.json" ]]; then
extra_args+=" --wokwi-diagram $sketchdir/diagram.$target.json"
fi

elif [ $platform == "qemu" ]; then
PATH=$HOME/qemu/bin:$PATH
extra_args="--embedded-services qemu --qemu-image-path $build_dir/$sketchname.ino.merged.bin"
Expand Down
8 changes: 4 additions & 4 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cryptography==42.0.7
--only-binary cryptography
pytest-cov==5.0.0
pytest-embedded-serial-esp==1.10.2
pytest-embedded-arduino==1.10.2
pytest-embedded-wokwi==1.10.2
pytest-embedded-qemu==1.10.2
pytest-embedded-serial-esp==1.11.0
pytest-embedded-arduino==1.11.0
pytest-embedded-wokwi==1.11.0
pytest-embedded-qemu==1.11.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3a7eda1

Please sign in to comment.