Skip to content

Add github action to run unit tests on every PR #4

Add github action to run unit tests on every PR

Add github action to run unit tests on every PR #4

Workflow file for this run

name: "Run Tests"
on:
- workflow_dispatch
- pull_request
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies and local packages
run: python -m pip install mpremote click
- name: Install MicroPython
uses: BrianPugh/install-micropython@v2
- name: Install Micropython dependencies
run: micropython -m mip install unittest
- name: Run tests
run: python -m ci.test