Skip to content

Commit

Permalink
Test brian cflag action (#2)
Browse files Browse the repository at this point in the history
* use Brian github action for micropython install
  • Loading branch information
surdouski authored Sep 20, 2024
1 parent 4b37b17 commit 9798b66
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install unittest via MIP
- name: Install Micropython
uses: BrianPugh/install-micropython@v2
with:
reference: v1.23.0

- name: Install unittest
run: |
docker run --rm -v $(pwd)/lib:/root/.micropython/lib $DOCKER_IMAGE micropython -m mip install unittest
micropython -m mip install unittest
- name: Install dependencies via MIP
- name: Install deps
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 {}
echo "$deps" | xargs -I {} 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
micropython test.py

0 comments on commit 9798b66

Please sign in to comment.