Skip to content

Clean up docs workflows #12

Clean up docs workflows

Clean up docs workflows #12

name: Docs tests to run when doc-builder is updated
on:
push:
# Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed.
branches: ['*']
paths:
- 'doc/doc-builder'
- '.github/workflows/docs-update-dependency-common.yml'
pull_request:
# Run on pull requests that change the listed files
paths:
- 'doc/doc-builder'
- '.github/workflows/docs-update-dependency-common.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
test-update-dependency:
# Don't run on forks
if: ${{ github.repository == 'ESCOMP/CTSM' }}
name: Tests to run when either docs dependency is updated
uses: ./.github/workflows/docs-update-dependency-common.yml
with:
conda_env_file: python/conda_env_ctsm_py.yml
conda_env_name: ctsm_pylib
test-rv-setup:
# Don't run on forks
if: ${{ github.repository == 'ESCOMP/CTSM' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
# Check out all submodules because we might :literalinclude: something from one
- name: Checkout all submodules
run: |
bin/git-fleximod update -o
- name: build_docs rv method
run: |
cd doc/testing && ./test_build_docs_-r-v.sh docker