-
-
Notifications
You must be signed in to change notification settings - Fork 117
42 lines (40 loc) · 1.27 KB
/
pytest.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: pytest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/darthcloud/idf-blueretro:v5.5.0_2024-12-02_ws
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Build with ESP-IDF
shell: bash
run: |
. $IDF_PATH/export.sh
echo "br_version=$(git describe --always --tags --dirty)" >> $GITHUB_ENV
echo "$(git describe --always --tags --dirty) dbg qemu" | cut -c -31 > version.txt
cat version.txt
cp configs/dbg/qemu sdkconfig
idf.py build
- name: Run pytest
shell: bash
run: |
. $IDF_PATH/export.sh
(cd build; esptool.py --chip esp32 merge_bin --fill-flash-size 4MB -o flash_image.bin @flash_args)
qemu-system-xtensa -machine esp32 -drive file=build/flash_image.bin,if=mtd,format=raw -serial file:serial_log.txt -display none -nic user,model=open_eth,id=lo0,hostfwd=tcp:127.0.0.1:8001-:80 -daemonize
pytest
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: serial_log
path: serial_log.txt
if-no-files-found: error