Skip to content

Commit

Permalink
Test MicroPython in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Mar 4, 2024
1 parent 6c4c01f commit d68648d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ jobs:
TEST_CYCLES=50000 ./test_secplus.py
TEST_CYCLES=50000 TEST_MODE=c ./test_secplus.py
TEST_CYCLES=1000 TEST_MODE=avr ./test_secplus.py
micropython:
name: "MicroPython"
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: sudo apt-get install micropython
- name: Install MicroPython modules
run: |
mkdir -p ~/.micropython/lib/
curl https://raw.githubusercontent.com/micropython/micropython-lib/v1.22.2/python-stdlib/random/random.py > ~/.micropython/lib/random.py
mkdir -p ~/.micropython/lib/unittest/
curl https://raw.githubusercontent.com/micropython/micropython-lib/v1.22.2/python-stdlib/unittest/unittest/__init__.py > ~/.micropython/lib/unittest/__init__.py
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: |
TEST_CYCLES=50000 micropython ./test_secplus.py

0 comments on commit d68648d

Please sign in to comment.