Merge branch 'release' #77
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 | |
| on: | |
| push: | |
| branches: [master, release] | |
| pull_request: | |
| branches: [master, release] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release' }} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install MicroPython | |
| uses: BrianPugh/install-micropython@v2 | |
| with: | |
| reference: v1.24.1 | |
| - name: Install MicroPython dependencies | |
| run: | | |
| micropython -c "import mip; mip.install('github:josverl/micropython-stubs/mip/typing_mpy.json')" | |
| micropython -c "import mip; mip.install('datetime')" | |
| micropython -c "import mip; mip.install('__future__')" | |
| - name: Install pytest shim | |
| run: | | |
| mkdir -p ~/.micropython/lib/pytest | |
| cp dev/micropython_pytest_shim.py ~/.micropython/lib/pytest/__init__.py | |
| - name: Symlink fluids module | |
| run: | | |
| ln -s $PWD/fluids ~/.micropython/lib/fluids | |
| - name: Run tests | |
| continue-on-error: true | |
| run: | | |
| cd tests | |
| micropython -X heapsize=4M manual_runner.py |