remove print statement #14
This file contains 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: Run MicroPython Tests | |
on: | |
push: | |
branches: | |
- '**' # Trigger on any branch push | |
env: | |
DOCKER_IMAGE: micropython/unix | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install unittest via MIP | |
run: | | |
docker run --rm -v $(pwd)/lib:/root/.micropython/lib $DOCKER_IMAGE micropython -m mip install unittest | |
- name: Install dependencies via MIP | |
run: | | |
deps=$(jq -r '.deps[] | "\(.[0])@\(.[1])"' package.json) | |
echo "$deps" | xargs -n 1 -I {} docker run --rm -v $(pwd)/lib:/root/.micropython/lib $DOCKER_IMAGE micropython -m mip install {} | |
- name: Run tests | |
run: | | |
docker run --rm -v $(pwd):/code -v $(pwd)/lib:/root/.micropython/lib -w /code $DOCKER_IMAGE micropython test.py |