refactor: update MicroPython test workflow to use unittest discovery … #18
This file contains hidden or 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: MicroPython Test | |
| on: [push, pull_request] | |
| jobs: | |
| code-coverage: | |
| name: MicroPython Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Install MicroPython | |
| uses: BrianPugh/install-micropython@v2 | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| micropython -m mip install unittest | |
| micropython -m mip install unittest-discover | |
| - name: Test MicroPython | |
| run: | | |
| micropython -m unittest discover tests_micropython |