Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(wokwi): Pass diagram.json file if exists to pytest #9720

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading