Support for Python 3.12 (#32) #61
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
name: Documentation | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['*'] | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Conda Environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
use-mamba: true | |
environment-file: ci/requirements-docs.yml | |
activate-environment: xarray-extras-docs | |
- name: Show conda options | |
run: conda config --show | |
- name: conda info | |
run: conda info | |
- name: conda list | |
run: conda list | |
- name: Install | |
run: python -m pip install --no-deps -e . | |
- name: Build docs | |
run: sphinx-build -n -j auto -b html -d build/doctrees doc build/html | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: xarray_extras-docs | |
path: build/html |