diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a0043d..8f50956 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: diff --git a/.readthedocs.yml b/.readthedocs.yml index 603fbe5..02f2629 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,7 +6,7 @@ build: python: "mambaforge-4.10" conda: - environment: environment.yml + environment: build-environment.yml sphinx: configuration: conf.py diff --git a/build-environment.yml b/build-environment.yml new file mode 100644 index 0000000..763acd0 --- /dev/null +++ b/build-environment.yml @@ -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 diff --git a/environment.yml b/environment.yml index bbd94e4..dca029c 100644 --- a/environment.yml +++ b/environment.yml @@ -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