Skip to content

Commit

Permalink
bring in test runner, attempt to run!
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Feb 18, 2025
1 parent af886db commit 2770d8a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/run-offline-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
# SPDX-License-Identifier: MIT
name: WipperSnapper Tests for Offline Mode
on:
release:
types: [published]
secrets:
GH_REPO_TOKEN:
required: true
permissions:
checks: write
pull-requests: write
push:
branches:
- test-offline-release
secrets:
GH_REPO_TOKEN:
required: true

jobs:
build:
Expand All @@ -26,22 +24,21 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Install Wokwi CI server
- name: Install Wokwi CI Server
uses: wokwi/wokwi-ci-server-action@v1
- name: Install Wokwi CLI
run: curl -L https://wokwi.com/ci/install.sh | sh
- name: Install platformIO libraries
run: pio lib install
- name: Build PlatformIO examples
run: pio ci --board=esp32dev
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
- name: Test on Wokwi
- name: Build PlatformIO Project
run: platformio run --environment esp32dev
- name: Move new build file to test folder
run: cp .pio/build/esp32dev/firmware.elf tests/bin/offline/firmware.elf
- name: Run Wokwi Tests
run: pytest tests/${{ matrix.test }}.py --junitxml=report.xml -v
env:
WOKWI_CLI_TOKEN: ${{ secrets.WOKWI_CLI_TOKEN }}

- name: Publish Test Results
- name: Publish Wokwi Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
Expand Down
4 changes: 2 additions & 2 deletions src/components/statusLED/Wippersnapper_StatusLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ void initStatusLED() {
#if defined(ARDUINO_ESP8266_ADAFRUIT_HUZZAH)
analogWrite(STATUS_LED_PIN, 255);
#elif defined(ARDUINO_ARCH_ESP32)
WsV2._pwmComponent->attach(STATUS_LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
WsV2._pwmComponent->writeDutyCycle(STATUS_LED_PIN, 0); // turn OFF
//WsV2._pwmComponent->attach(STATUS_LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
//WsV2._pwmComponent->writeDutyCycle(STATUS_LED_PIN, 0); // turn OFF
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
digitalWrite(STATUS_LED_PIN, 0);
#else
Expand Down

0 comments on commit 2770d8a

Please sign in to comment.