Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Jan 8, 2025
1 parent 65267de commit 268acd3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
paths-ignore: ['**.md', '**.svg', '**.png']
pull_request:
paths-ignore: ['**.md', '**.svg', '**.png']

jobs:

build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up MicroPython
uses: BrianPugh/install-micropython@v2
- name: Install dependencies
run: |
pip3 install -U python-minifier mpy-cross microemu
- name: Build
run: |
python3 ./extra/build.py
- name: Test (Python 3)
run: |
microemu examples/simple/main.py
- name: Test (MicroPython)
run: |
export MICROPYPATH=".frozen:./lib:."
micropython examples/simple/main.py

0 comments on commit 268acd3

Please sign in to comment.