Skip to content

Commit 2fb0389

Browse files
committed
ci: update build-ipynb to use QuantEcon/mystmd quantecon branch via bun
1 parent c6779ad commit 2fb0389

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/build-ipynb.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212

1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 22.x
15+
node-version: '20'
16+
17+
- uses: oven-sh/setup-bun@v2
1618

1719
- name: Install Python
1820
uses: actions/setup-python@v5
@@ -24,23 +26,25 @@ jobs:
2426
- name: Install execution requirements
2527
run: python -m pip install -r myst_requirements.txt
2628

27-
- name: Clone QuantEcon/mystmd (myst-to-ipynb branch)
29+
- name: Install mystmd (QuantEcon fork)
2830
run: |
29-
git clone --depth 1 --branch myst-to-ipynb https://github.com/QuantEcon/mystmd.git /tmp/mystmd
31+
git clone --branch quantecon --depth 1 \
32+
https://github.com/QuantEcon/mystmd.git /tmp/qe-mystmd
33+
cd /tmp/qe-mystmd
34+
bun install
35+
bun run build
36+
npm install -g /tmp/qe-mystmd/packages/mystmd
3037
31-
- name: Build mystmd from source
32-
working-directory: /tmp/mystmd
33-
run: |
34-
npm install
35-
npx turbo run build
38+
- name: Verify mystmd version
39+
run: myst --version
3640

3741
- name: Build HTML with custom mystmd
3842
working-directory: ./lectures
39-
run: /tmp/mystmd/packages/mystmd/dist/myst.cjs build --html
43+
run: myst build --html
4044

4145
- name: Build ipynb exports with custom mystmd
4246
working-directory: ./lectures
43-
run: /tmp/mystmd/packages/mystmd/dist/myst.cjs build --ipynb
47+
run: myst build --ipynb
4448

4549
- name: Audit notebooks for MyST syntax leaks
4650
working-directory: ./lectures

0 commit comments

Comments
 (0)