Skip to content

Merge to 1.3.0 release #78

Merge to 1.3.0 release

Merge to 1.3.0 release #78

Workflow file for this run

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