Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update umamba gha #142

Merged
merged 3 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,22 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v16
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
micromamba create --name IOOS --file .binder/conda-lock.yml
micromamba activate IOOS
environment-name: IOOS
init-shell: bash
create-args: >-
--file .binder/conda-lock.yml

- name: Build documentation
shell: bash -l {0}
run: |
set -e
micromamba activate IOOS
jupyter-book build jupyterbook

- name: GitHub Pages action
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3.9.3
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: jupyterbook/_build/html
13 changes: 8 additions & 5 deletions .github/workflows/test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v16
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
- name: Build environment
environment-name: IOOS
init-shell: bash
create-args: >-
--file .binder/conda-lock.yml

- name: Test environment
shell: bash -l {0}
run: |
micromamba create --name IOOS --file .binder/conda-lock.yml
micromamba activate IOOS
python -c 'import osgeo.gdal; print(dir(osgeo.gdal))'
16 changes: 6 additions & 10 deletions .github/workflows/test_data_access_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v16
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
micromamba create --name IOOS --file .binder/conda-lock.yml
micromamba activate IOOS
environment-name: IOOS
init-shell: bash
create-args: >-
--file .binder/conda-lock.yml

- name: Notebook tests
shell: bash -l {0}
run: |
micromamba activate IOOS
pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_access_notebooks/
python -m pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_access_notebooks/
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v16
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
micromamba create --name IOOS --file .binder/conda-lock.yml
micromamba activate IOOS
environment-name: IOOS
init-shell: bash
create-args: >-
--file .binder/conda-lock.yml

- name: Notebook tests
shell: bash -l {0}
run: |
micromamba activate IOOS
pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/
python -m pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/
16 changes: 6 additions & 10 deletions .github/workflows/test_data_management_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v16
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Build environment
shell: bash -l {0}
run: |
micromamba create --name IOOS --file .binder/conda-lock.yml
micromamba activate IOOS
environment-name: IOOS
init-shell: bash
create-args: >-
--file .binder/conda-lock.yml

- name: Notebook tests
shell: bash -l {0}
run: |
micromamba activate IOOS
pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_management_notebooks/
python -m pytest --nbval --nbval-lax jupyterbook/content/code_gallery/data_management_notebooks/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.263
rev: v0.0.270
hooks:
- id: ruff

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
"PS: There are many interesting examples at [https://unidata.github.io/siphon/latest/examples/index.html](https://unidata.github.io/siphon/latest/examples/index.html), be sure to check them out."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<div class=\"alert alert-danger\">\n",
" <strong>This notebook is stale and won't run due to missing data upstream and changes in the libraries used.</strong>\n",
"</div>"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -613,7 +622,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ addopts =
# Stale/won't fix/missing library
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2016-12-19-exploring_csw.ipynb"
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2016-12-22-boston_light_swim.ipynb"
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2017-01-18-siphon-explore-thredds.ipynb"
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.ipynb"
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2017-07-25-HFRadar_currents.ipynb"
--ignore="jupyterbook/content/code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.ipynb"
Expand Down