-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 886 Bytes
/
micropython.yml
File metadata and controls
27 lines (23 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: MicroPython Integration
on:
workflow_dispatch:
jobs:
micropython:
runs-on: [self-hosted, Linux]
strategy:
fail-fast: false
matrix:
device: [ESP32]
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
$HOME/actions-runner/.venv/bin/pip install -e .
$HOME/actions-runner/.venv/bin/pip install uhttp-client
- name: MicroPython tests (${{ matrix.device }})
run: |
export PATH="$HOME/actions-runner/.venv/bin:$PATH"
export MPY_TEST_PORT="$(cat $HOME/actions-runner/.config/mpytool/${{ matrix.device }})"
export MPY_WIFI_SSID="$(jq -r .ssid $HOME/actions-runner/.config/uhttp/wifi.json)"
export MPY_WIFI_PASSWORD="$(jq -r .password $HOME/actions-runner/.config/uhttp/wifi.json)"
python -m unittest tests.test_mpy_integration -v