From 1e94457221359fb093bef6c480545d9dc0d5637b Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Mon, 4 Mar 2024 00:27:26 -0500 Subject: [PATCH] Test MicroPython in CI --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dda4a7b..347d222 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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-20.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