Skip to content

Commit 66695b1

Browse files
try to fix autodoc imports
1 parent a3cd746 commit 66695b1

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

.github/workflows/build_sphinx.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,45 @@ jobs:
3333
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3434
- uses: actions/checkout@v2
3535

36-
- name: Set up Python 3.10
36+
- name: Install system dependencies
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y libgfortran5
40+
41+
- name: Set up Python 3.11
3742
uses: actions/setup-python@v2
3843
with:
39-
python-version: "3.10"
44+
python-version: 3.11
45+
46+
- name: Add conda to system path
47+
run: |
48+
echo $CONDA/bin >> $GITHUB_PATH
4049
41-
- name: Install dependencies
50+
- name: Conda build env for docs
4251
run: |
43-
python -m pip install --upgrade pip
52+
conda env create -f schism_env.yml
53+
source $CONDA/etc/profile.d/conda.sh
54+
conda activate schism
55+
conda install -c conda-forge libgfortran=3
4456
pip install -r docsrc/requirements.txt
57+
pip install -e ./bdschism
4558
4659
- name: Build HTML
4760
run: |
61+
source $CONDA/etc/profile.d/conda.sh
62+
conda activate schism
4863
cd docsrc/
64+
# sphinx-apidoc --force -o . ../bdschism
65+
make clean
4966
make html
5067
5168
- name: Run ghp-import
5269
shell: bash
5370
env:
5471
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5572
run: |
73+
source $CONDA/etc/profile.d/conda.sh
74+
conda activate schism
5675
git config http.postBuffer 157286400
5776
git pull
5877

docsrc/requirements.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# furo==2021.11.16
22
sphinx>=7.0
3+
pillow>=4.0.0
34
sphinx-design
45
sphinx-argparse
56
sphinxcontrib-bibtex
@@ -9,15 +10,6 @@ ghp-import # for GitHub Pages import
910
nbsphinx
1011
numpydoc
1112
docutils
12-
matplotlib # needed for matplotlib.sphinxext.mathmply
13-
ipython # neededd for IPython.sphinxext.ipython_directive
14-
pip
15-
# baydelta specific stuff
16-
# needed for many bdschism imports
17-
suxarray
18-
vtools
19-
dms_datastore
20-
schimpy
21-
dynaconf
22-
click
23-
pyproj
13+
# matplotlib # removed, already in schism_env.yml
14+
# ipython # removed, already in schism_env.yml
15+
# pip # removed, already in schism_env.yml

0 commit comments

Comments
 (0)