Skip to content

Commit f7da1e2

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

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/draft-pdf.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@ 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+
MICROPYTHON_BIN: ./micropython/ports/unix/build-nomodules/micropython
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install OS dependencies
15+
run: sudo add-apt-repository universe
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
- uses: actions/checkout@v4
20+
with:
21+
repository: micropython/micropython
22+
path: micropython
23+
ref: master
24+
- name: Install Python dependencies
25+
run: pip install plotly numpy pandas scikit-learn
26+
- name: Setup MicroPython Unix X86
27+
working-directory: micropython
28+
run: |
29+
source tools/ci.sh && ci_unix_32bit_setup && ci_unix_standard_build
30+
mv ./ports/unix/build-standard/ ./ports/unix/build-nomodules/
31+
cp ${MICROPYTHON_BIN} /usr/local/bin/micropython
32+
- name: Run example
33+
run: python create_plot.py
34+
535
paper:
636
runs-on: ubuntu-latest
737
name: Paper Draft

0 commit comments

Comments
 (0)