Skip to content

Commit

Permalink
Merge pull request #81 from ocefpaf/move_micro_mamba
Browse files Browse the repository at this point in the history
Use micromamba instead of conda for faster builds
  • Loading branch information
MathewBiddle authored May 25, 2022
2 parents 41aaf9d + d9fdfdf commit 15f3ada
Show file tree
Hide file tree
Showing 12 changed files with 2,005 additions and 1,519 deletions.
569 changes: 291 additions & 278 deletions .binder/conda-linux-64.lock

Large diffs are not rendered by default.

589 changes: 302 additions & 287 deletions .binder/conda-osx-64.lock

Large diffs are not rendered by default.

551 changes: 283 additions & 268 deletions .binder/conda-win-64.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .binder/environment-python_and_r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- cartopy
- cc-plugin-glider
- cc-plugin-ncei
- cf_xarray
- cftime
- compliance-checker
- cython
Expand Down Expand Up @@ -37,6 +38,7 @@ dependencies:
- nco
- oceans
- oct2py
- odvc
- palettable
- phantomjs
- pocean-core
Expand Down
2 changes: 2 additions & 0 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- cartopy
- cc-plugin-glider
- cc-plugin-ncei
- cf_xarray
- cftime
- compliance-checker
- cython
Expand Down Expand Up @@ -37,6 +38,7 @@ dependencies:
- nco
- oceans
- oct2py
- odvc
- palettable
- phantomjs
- pocean-core
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build and Deploy docs

on:
push:
branches:
- main
pull_request:
push:
branches: [main]

jobs:
build-docs:
Expand All @@ -13,23 +12,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-linux-64.lock
source activate IOOS
micromamba create --name IOOS --file .binder/conda-linux-64.lock
micromamba activate IOOS
- name: Build documentation
shell: bash -l {0}
run: |
set -e
source activate IOOS
micromamba activate IOOS
jupyter-book build jupyterbook
- name: GitHub Pages action
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/test-env-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-linux-64.lock
source activate IOOS
micromamba create --name IOOS --file .binder/conda-linux-64.lock
micromamba activate IOOS
python -c 'import osgeo.gdal; print(dir(osgeo.gdal))'
11 changes: 5 additions & 6 deletions .github/workflows/test-env-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-osx-64.lock
source activate IOOS
micromamba create --name IOOS --file .binder/conda-osx-64.lock
micromamba activate IOOS
python -c 'import osgeo.gdal; print(dir(osgeo.gdal))'
11 changes: 5 additions & 6 deletions .github/workflows/test-env-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-win-64.lock
source activate IOOS
micromamba create --name IOOS --file .binder/conda-win-64.lock
micromamba activate IOOS
python -c 'import osgeo.gdal; print(dir(osgeo.gdal))'
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-linux-64.lock
source activate IOOS
micromamba create --name IOOS --file .binder/conda-linux-64.lock
micromamba activate IOOS
- name: Notebook tests
shell: bash -l {0}
run: |
source activate IOOS
micromamba activate IOOS
pytest --nbval --nbval-lax jupyterbook/
Loading

0 comments on commit 15f3ada

Please sign in to comment.