Skip to content

Commit

Permalink
github action: test (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Dec 25, 2020
1 parent 13680a2 commit 33d73c9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run the tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install MicroPython dependencies
run: |
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y build-essential libreadline-dev libffi-dev git pkg-config gcc-arm-none-eabi libnewlib-arm-none-eabi
git clone --recurse-submodules https://github.com/micropython/micropython.git
- name: Build MicroPython
run: |
cd micropython
git checkout v1.13
sudo make -C mpy-cross
sudo make -C ports/unix axtls install
cd ..
- name: Run the tests
run: |
micropython -m upip install logging unittest uasyncio uasyncio.core
cp -r tinyweb ~/.micropython/lib/
micropython test/test_server.py

0 comments on commit 33d73c9

Please sign in to comment.