generated from jupyterlite/demo
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from agriyakhetarpal/update/sympy-workflow
Ensure that the SymPy version always remains up to date
- Loading branch information
Showing
9 changed files
with
279 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,13 @@ on: | |
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
- "*" | ||
# To ensure we always fetch the latest SymPy wheel | ||
# and build the site daily | ||
schedule: | ||
- cron: "0 3 * * *" | ||
# Allow manual trigger to rebuild if something failed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
@@ -17,19 +23,32 @@ jobs: | |
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install the dependencies | ||
python-version: "3.11" | ||
|
||
- name: Install JupyterLite dependencies | ||
run: | | ||
python -m pip install -r requirements.txt | ||
- name: Build the JupyterLite site | ||
- name: Download latest stable SymPy wheel | ||
run: | | ||
jupyter lite build | ||
mkdir -p custom_wheels | ||
python -m pip download sympy \ | ||
--only-binary=:all: \ | ||
--no-deps \ | ||
--dest custom_wheels | ||
- name: Reduce the size of the wheel | ||
run: pipx run unvendor_tests_from_wheel.py custom_wheels/ | ||
|
||
- name: Build the JupyterLite site | ||
run: jupyter lite build | ||
|
||
- name: Add custom index.html (live.sympy.org landing page) and static/ files | ||
run: | | ||
./generateindex.py | ||
run: pipx run generate_index.py | ||
|
||
- name: Add CNAME file containing live.sympy.org | ||
run: | | ||
echo "live.sympy.org" > ./_output/CNAME | ||
run: echo "live.sympy.org" > ./_output/CNAME | ||
|
||
- name: Upload (dist) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -49,6 +68,7 @@ jobs: | |
name: jupyterlite-demo-dist-${{ github.run_number }} | ||
path: ./dist | ||
merge-multiple: true | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,3 +114,6 @@ dmypy.json | |
# jupyterlite | ||
*.doit.db | ||
_output | ||
|
||
# Downloaded wheels for SymPy | ||
*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
# Core modules and Pyodide kernel (mandatory) | ||
# Pyodide kernel version 0.5.1 comes with Pyodide 0.27.1 | ||
# Pyodide kernel version 0.5.2 comes with Pyodide 0.27.1 | ||
# which in-turn comes with SymPy 1.13.3: | ||
# https://jupyterlite-pyodide-kernel.readthedocs.io/en/stable/#compatibility | ||
# https://pyodide.org/en/stable/usage/packages-in-pyodide.html | ||
# We constrain/pin them to avoid breaking changes on rebuilds. | ||
jupyterlite-core>=0.5.0,<0.6.0 | ||
jupyterlite-pyodide-kernel==0.5.1 | ||
|
||
# Specific to generating SymPy Live index page | ||
jinja2==3.1.5 | ||
babel==2.16.0 | ||
jupyterlite-pyodide-kernel==0.5.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.