Skip to content

Commit

Permalink
Add build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Sep 15, 2023
1 parent 6d42a8e commit c5bcc0a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 27 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@v12

- name: Install mamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.1-0'
environment-file: build-environment.yml
cache-environment: true

- name: Build the JupyterLite site
shell: bash -l {0}
run: |
cp README.md content
jupyter lite build --contents content --output-dir dist
- name: Upload dist
uses: actions/upload-pages-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
python: "mambaforge-4.10"

conda:
environment: environment.yml
environment: build-environment.yml

sphinx:
configuration: conf.py
27 changes: 27 additions & 0 deletions build-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: try-jupyter-build
channels:
- conda-forge
dependencies:
- python=3.10
- mamba
- pydata-sphinx-theme
- myst-parser
- bqplot
- ipycanvas >=0.9.1
- ipyleaflet
- ipympl>=0.8.2
- ipywidgets>=8,<9
- jupyterlab>=3.5.2,<4
- jupyterlab-language-pack-fr-FR
- jupyterlab-language-pack-zh-CN
- jupyterlab-fasta>=3,<4
- jupyterlab-geojson>=3,<4
- jupyterlab-tour
- jupyterlab-night
- jupyterlite-core=0.1.2
- jupyterlite-xeus-python=0.9.4
- jupyterlite-sphinx>=0.9.1,<0.10
- plotly>=5,<6
- pip:
- jupyterlite-xeus-sqlite==0.2.1
- jupyterlab-open-url-parameter
27 changes: 3 additions & 24 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
name: try-jupyter
channels:
- conda-forge
- https://repo.mamba.pm/emscripten-forge
- https://repo.mamba.pm/conda-forge
dependencies:
- python=3.10
- mamba
- pydata-sphinx-theme
- myst-parser
- bqplot
- ipycanvas >=0.9.1
- ipyleaflet
- ipympl>=0.8.2
- ipywidgets>=8,<9
- jupyterlab>=3.5.2,<4
- jupyterlab-language-pack-fr-FR
- jupyterlab-language-pack-zh-CN
- jupyterlab-fasta>=3,<4
- jupyterlab-geojson>=3,<4
- jupyterlab-tour
- jupyterlab-night
- jupyterlite-core=0.1.2
- jupyterlite-xeus-python=0.9.4
- jupyterlite-sphinx>=0.9.1,<0.10
- plotly>=5,<6
- pip:
- jupyterlite-xeus-sqlite==0.2.1
- jupyterlab-open-url-parameter
- ipywidgets >=8,<9

0 comments on commit c5bcc0a

Please sign in to comment.