Skip to content

Commit d4cea7f

Browse files
committed
CI: Also check paper example
1 parent f6e6213 commit d4cea7f

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/draft-pdf.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@ name: Draft PDF
22
on: [push]
33

44
jobs:
5+
6+
example:
7+
runs-on: ubuntu-24.04
8+
name: Example
9+
env:
10+
MPY_DIR: ./micropython
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install OS dependencies
14+
run: sudo add-apt-repository universe
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
- uses: actions/checkout@v4
19+
with:
20+
repository: micropython/micropython
21+
path: micropython
22+
ref: master
23+
- name: Install Python dependencies
24+
run: pip install plotly numpy pandas scikit-learn
25+
- name: Setup MicroPython Unix X86
26+
working-directory: micropython
27+
run: |
28+
source tools/ci.sh && ci_unix_32bit_setup && ci_unix_standard_build
29+
cp ./ports/unix/build-standard/micropython /usr/local/bin/micropython
30+
- name: Run example
31+
run: python create_plot.py
32+
533
paper:
634
runs-on: ubuntu-latest
735
name: Paper Draft

0 commit comments

Comments
 (0)