update #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ESPHome UART Test | |
on: | |
push: | |
branches: | |
- wokwi | |
pull_request: | |
jobs: | |
test-esp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Node.js and Wokwi CLI | |
run: | | |
sudo apt update | |
sudo apt install -y git npm | |
git clone https://github.com/wokwi/wokwi-cli | |
cd wokwi-cli | |
npm install | |
sudo npm link # Macht die CLI global verfügbar | |
- name: Install Python dependencies | |
run: | | |
pip install esphome pytest pyserial | |
- name: Run Wokwi simulation with UART tests | |
run: | | |
wokwi-cli exec \ | |
--project=./wokwi-project \ | |
--command="pytest test/test_uart_test.py --disable-warnings" |