2323 timeout-minutes : 40
2424 runs-on : ubuntu-latest
2525 steps :
26- - uses : actions/checkout@v4
27- - uses : actions/setup-python@v5
26+ - uses : actions/checkout@v6
27+ - uses : actions/setup-python@v6
2828 with :
2929 python-version : " 3.14"
3030 - name : Install dependencies
4343 tar -xf qemu-riscv32-softmmu-esp_develop_9.2.2_20250817-x86_64-linux-gnu.tar.xz
4444 echo "$PWD/qemu/bin" >> $GITHUB_PATH
4545 - name : Run QEMU tests
46- run : pytest pytest-embedded-qemu/tests/test_qemu.py
46+ run : |
47+ pytest pytest-embedded-qemu/tests/test_qemu.py \
48+ --junitxml pytest-qemu.xml \
49+ --cov-report=xml:coverage-qemu.xml \
50+ --cov=pytest_embedded \
51+ --cov=pytest_embedded_arduino \
52+ --cov=pytest_embedded_idf \
53+ --cov=pytest_embedded_jtag \
54+ --cov=pytest_embedded_qemu \
55+ --cov=pytest_embedded_serial \
56+ --cov=pytest_embedded_serial_esp \
57+ --cov=pytest_embedded_wokwi \
58+ --cov=pytest_embedded_nuttx
59+ - name : Upload test results
60+ uses : actions/upload-artifact@v6
61+ if : always()
62+ with :
63+ name : test-results-qemu
64+ path : |
65+ pytest-qemu.xml
66+ coverage-qemu.xml
4767
4868 test-python :
4969 timeout-minutes : 40
7797 - name : Run Tests with coverage
7898 run : |
7999 pytest \
80- --junitxml=pytest.xml \
81- --cov-report=term-missing \
100+ --junitxml=pytest-${{ matrix.python-version }}-${{ matrix.arch }} .xml \
101+ --cov-report=xml:coverage-${{ matrix.python-version }}-${{ matrix.arch }}.xml \
82102 --cov=pytest_embedded \
83103 --cov=pytest_embedded_arduino \
84104 --cov=pytest_embedded_idf \
@@ -88,12 +108,11 @@ jobs:
88108 --cov=pytest_embedded_serial_esp \
89109 --cov=pytest_embedded_wokwi \
90110 --cov=pytest_embedded_nuttx
91- - name : Zip log files
92- if : failure()
93- run : |
94- zip -r logs.zip /tmp/pytest-embedded
95- - uses : actions/upload-artifact@v6
96- if : failure()
111+ - name : Upload test results
112+ uses : actions/upload-artifact@v6
113+ if : always()
97114 with :
98- name : logs-${{ matrix.python-version }}
99- path : logs.zip
115+ name : test-results-${{ matrix.python-version }}-${{ matrix.arch }}
116+ path : |
117+ pytest-${{ matrix.python-version }}-${{ matrix.arch }}.xml
118+ coverage-${{ matrix.python-version }}-${{ matrix.arch }}.xml
0 commit comments