Skip to content

Commit

Permalink
Setup WASM testing in new yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
kp992 committed Dec 9, 2024
1 parent 5eb4dd3 commit 0bb7cef
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ jobs:
run: |
rm -r _build/.doctrees
jb build lectures --path-output ./ -nW --keep-going
# Soft check on CI to check the WASM compatibility.
- name: Check WASM lectures
shell: bash -l {0}
run: |
python testing/check_wasm.py
- name: Upload Execution Reports (HTML)
uses: actions/upload-artifact@v4
if: failure()
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build HTML [using jupyter-book]
on: [pull_request]
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install required libraries
shell: bash -l {0}
run: |
pip install pyodide-py jupytext PyYAML
# Soft check on CI to check the WASM compatibility.
- name: Check WASM lectures
shell: bash -l {0}
run: |
python testing/check_wasm.py
2 changes: 0 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ dependencies:
- sphinxcontrib-youtube==1.1.0
- sphinx-togglebutton==0.3.1
- sphinx_reredirects==0.1.3
- pyodide-py
- jupytext
# Sandpit Requirements
# - PuLP
# - cvxpy
Expand Down
2 changes: 1 addition & 1 deletion wasm_compatible.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Config file for adding lectures that are WASM compatible.
# Please add the lecture file names without `.md` extension.
lectures:
- cobweb
- cobweb

0 comments on commit 0bb7cef

Please sign in to comment.