@@ -22,45 +22,49 @@ jobs:
2222 runs-on : ubuntu-latest
2323 defaults :
2424 run :
25- shell : bash -el {0}
25+ shell : bash
2626 steps :
2727 - name : Checkout
2828 uses : actions/checkout@v4
2929 with :
3030 fetch-depth : 0
31- - name : Set up micromamba
32- uses : mamba-org /setup-micromamba@v2
31+ - name : Set up Python 3.13
32+ uses : actions /setup-python@v4
3333 with :
34- environment-file : environment-docs.yml
35- cache-environment : true
36- cache-downloads : true
37- create-args : >-
38- python=3.13
39- init-shell : bash
40- condarc : |
41- channels:
42- - conda-forge
43- - cadwr-dms
44- - nodefaults
45- channel_priority: flexible
34+ python-version : ' 3.13'
4635
47- - name : Show environment details
36+ - name : Add conda to system path
4837 run : |
49- micromamba info
50- micromamba list
38+ echo "Using CONDA root at $CONDA"
39+ echo "$CONDA/bin" >> $GITHUB_PATH
40+ conda --version
41+
42+ - name : Create docs env from environment-docs.yml
43+ run : |
44+ # Create env (will be named as in file)
45+ conda env create -f environment-docs.yml || { echo "Env create failed (maybe exists), attempting update"; conda env update -f environment-docs.yml --prune; }
46+ source $CONDA/etc/profile.d/conda.sh
47+ conda activate pydsm-docs
5148 python --version
49+ conda list | head -40
5250 which python
51+ pip install -e .
5352 which sphinx-build || true
53+ sphinx-build --version
5454
5555 - name : Verify docs tooling imports
5656 run : |
57+ source $CONDA/etc/profile.d/conda.sh
58+ conda activate pydsm-docs
5759 python -c "import importlib, sphinx, nbsphinx; print('sphinx', sphinx.__version__); print('nbsphinx', nbsphinx.__version__); [importlib.import_module(m) for m in ['pydsm','networkx','pandas','h5py']]; print('Imports OK')"
5860
5961 - name : Build HTML docs
6062 working-directory : docsrc
6163 env :
6264 NBSPHINX_ALLOW_ERRORS : " 0"
6365 run : |
66+ source $CONDA/etc/profile.d/conda.sh
67+ conda activate pydsm-docs
6468 sphinx-build -b html -W --keep-going . _build/html
6569 echo "Built docs size:" && du -sh _build/html || true
6670
0 commit comments