-
-
Notifications
You must be signed in to change notification settings - Fork 19
58 lines (55 loc) · 1.9 KB
/
draft-pdf.yaml
File metadata and controls
58 lines (55 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Draft PDF
on: [push]
jobs:
example:
runs-on: ubuntu-24.04
name: Example
env:
MPY_DIR: ./micropython
steps:
- uses: actions/checkout@v4
- name: Install OS dependencies
run: sudo add-apt-repository universe
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/checkout@v4
with:
repository: micropython/micropython
path: micropython
ref: master
- name: Install Python dependencies
run: pip install plotly numpy pandas scikit-learn emlearn setuptools pyarrow kaleido
- name: Setup MicroPython Unix X86
working-directory: micropython
run: |
source tools/ci.sh && ci_unix_32bit_setup && ci_unix_standard_build
cp ./ports/unix/build-standard/micropython /usr/local/bin/micropython
- name: Install MicroPython modules
run: |
micropython -m mip install github:jonnor/micropython-npyfile
micropython -m mip install https://emlearn.github.io/emlearn-micropython/builds/latest/x64_6.3/emlearn_trees.mpy
micropython -m mip install https://emlearn.github.io/emlearn-micropython/builds/latest/x64_6.3/emlearn_fft.mpy
- name: Run example
working-directory: paper
run: python create_plot.py
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper/paper.pdf