From 8d4a882e15ea7b1f2e1c5c76cba2ac0869923c0c Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Wed, 12 Nov 2025 16:26:46 +0100 Subject: [PATCH 1/2] feat: add caching for pip and PlatformIO in CI workflow, extend timeout. --- .github/workflows/wokwi-test.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wokwi-test.yml b/.github/workflows/wokwi-test.yml index 153b4fc..9e2f373 100644 --- a/.github/workflows/wokwi-test.yml +++ b/.github/workflows/wokwi-test.yml @@ -70,6 +70,23 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache pip + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache PlatformIO + uses: actions/cache@v4 + with: + path: | + ~/.platformio + key: ${{ runner.os }}-platformio-${{ hashFiles('**/platformio.ini') }} + restore-keys: | + ${{ runner.os }}-platformio- + - name: Install PlatformIO run: | python -m pip install --upgrade pip @@ -87,6 +104,6 @@ jobs: with: token: ${{ secrets.WOKWI_CLI_TOKEN }} path: ${{ matrix.test.path }} - timeout: 10000 + timeout: 20000 scenario: ${{ matrix.test.scenario }} serial_log_file: serial-${{ matrix.test.name }}.log From ed26460f725f94aabef690a6e3642d0b4ed497a6 Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Wed, 12 Nov 2025 17:01:36 +0100 Subject: [PATCH 2/2] fix: reduce timeout for Wokwi CI action to improve efficiency --- .github/workflows/wokwi-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wokwi-test.yml b/.github/workflows/wokwi-test.yml index 9e2f373..f92743f 100644 --- a/.github/workflows/wokwi-test.yml +++ b/.github/workflows/wokwi-test.yml @@ -104,6 +104,6 @@ jobs: with: token: ${{ secrets.WOKWI_CLI_TOKEN }} path: ${{ matrix.test.path }} - timeout: 20000 + timeout: 10000 scenario: ${{ matrix.test.scenario }} serial_log_file: serial-${{ matrix.test.name }}.log