Skip to content

Commit 0bb7cef

Browse files
committed
Setup WASM testing in new yml file
1 parent 5eb4dd3 commit 0bb7cef

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ jobs:
7171
run: |
7272
rm -r _build/.doctrees
7373
jb build lectures --path-output ./ -nW --keep-going
74-
# Soft check on CI to check the WASM compatibility.
75-
- name: Check WASM lectures
76-
shell: bash -l {0}
77-
run: |
78-
python testing/check_wasm.py
7974
- name: Upload Execution Reports (HTML)
8075
uses: actions/upload-artifact@v4
8176
if: failure()

.github/workflows/wasm.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build HTML [using jupyter-book]
2+
on: [pull_request]
3+
jobs:
4+
preview:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
- name: Setup Python
10+
uses: actions/setup-python@v5
11+
with:
12+
python-version: '3.12'
13+
- name: Install required libraries
14+
shell: bash -l {0}
15+
run: |
16+
pip install pyodide-py jupytext PyYAML
17+
# Soft check on CI to check the WASM compatibility.
18+
- name: Check WASM lectures
19+
shell: bash -l {0}
20+
run: |
21+
python testing/check_wasm.py

environment.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ dependencies:
1818
- sphinxcontrib-youtube==1.1.0
1919
- sphinx-togglebutton==0.3.1
2020
- sphinx_reredirects==0.1.3
21-
- pyodide-py
22-
- jupytext
2321
# Sandpit Requirements
2422
# - PuLP
2523
# - cvxpy

wasm_compatible.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Config file for adding lectures that are WASM compatible.
22
# Please add the lecture file names without `.md` extension.
33
lectures:
4-
- cobweb
4+
- cobweb

0 commit comments

Comments
 (0)