Skip to content
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
27 changes: 13 additions & 14 deletions .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,16 @@ jobs:

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Create Build Environment
uses: conda-incubator/setup-miniconda@v3
uses: mamba-org/setup-micromamba@v2
with:
activate-environment: "build"
miniforge-version: latest
channels: conda-forge
channel-priority: strict
auto-update-conda: true
python-version: 3.12
environment-name: mpas_tools_dev
init-shell: bash
condarc: |
channel_priority: strict
channels:
- conda-forge
create-args: >-
python=${{ matrix.python-version }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Finalize Build Environment
Expand All @@ -105,16 +107,13 @@ jobs:
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Install mpas_tools
run: |
conda create -y -n mpas_tools_dev -c ${CONDA_PREFIX}/conda-bld/ \
-c conda-forge mpas_tools python=${{ matrix.python-version }} \
sphinx sphinx-multiversion mock sphinx_rtd_theme
conda install -y -c ${CONDA_PREFIX}/conda-bld/ \
mpas_tools python=${{ matrix.python-version }} \
sphinx mock sphinx_rtd_theme

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Build Sphinx Docs
run: |
conda activate mpas_tools_dev
# sphinx-multiversion expects at least a "master" branch
git branch master || echo "branch master already exists."
cd conda_package/docs
sphinx-multiversion . _build/html
DOCS_VERSION=test make versioned-html

22 changes: 11 additions & 11 deletions .github/workflows/docs_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,34 @@ jobs:

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Set up Conda Environment
uses: conda-incubator/setup-miniconda@v3
uses: mamba-org/setup-micromamba@v2
with:
activate-environment: "mpas_tools_ci"
miniforge-version: latest
channels: conda-forge
channel-priority: strict
auto-update-conda: true
python-version: ${{ env.PYTHON_VERSION }}
environment-name: mpas_tools_dev
init-shell: bash
condarc: |
channel_priority: strict
channels:
- conda-forge
create-args: >-
python=${{ env.PYTHON_VERSION }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Install mpas_tools
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
conda create -n mpas_tools_dev --file conda_package/dev-spec.txt
conda activate mpas_tools_dev
conda install -y --file conda_package/dev-spec.txt \
python=${{ env.PYTHON_VERSION }}
python -m pip install -vv --no-deps --no-build-isolation -e conda_package

- name: Build Sphinx Docs
run: |
set -e
cd conda_package/docs
conda activate mpas_tools_dev
DOCS_VERSION=${{ github.ref_name }} make versioned-html
- name: Copy Docs and Commit
run: |
set -e
cd conda_package/docs
conda activate mpas_tools_dev
# gh-pages branch must already exist
git clone https://github.com/MPAS-Dev/MPAS-Tools.git --branch gh-pages --single-branch gh-pages

Expand Down
Loading