Skip to content

Commit d1e390e

Browse files
try to fix autodoc imports
1 parent a3cd746 commit d1e390e

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.github/workflows/build_sphinx.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,29 @@ 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
37-
uses: actions/setup-python@v2
36+
- name: Set up Miniconda
37+
uses: conda-incubator/setup-miniconda@v2
3838
with:
39+
auto-update-conda: true
3940
python-version: "3.10"
4041

4142
- name: Install dependencies
4243
run: |
4344
python -m pip install --upgrade pip
4445
pip install -r docsrc/requirements.txt
46+
# Configure conda channels
47+
conda config --env --add channels defaults
48+
conda config --env --append channels conda-forge
49+
conda config --env --prepend channels cadwr-dms
50+
conda config --set channel_priority strict
51+
# Install specific versions of dependencies
52+
conda install -y -c conda-forge gdal
53+
conda install -y schimpy=1.6.4
54+
conda install -y vtools3=3.7.5
55+
conda install -y dms-datastore=0.1.0
56+
conda install -y suxarray
57+
conda install -y matplotlib=3.5.3
58+
conda install -y shapely<2.0
4559
4660
- name: Build HTML
4761
run: |

docsrc/requirements.txt

+7-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ ipython # neededd for IPython.sphinxext.ipython_directive
1414
pip
1515
# baydelta specific stuff
1616
# needed for many bdschism imports
17-
suxarray
18-
vtools
19-
dms_datastore
20-
schimpy
17+
opencv-python # for vtools (cv2)
2118
dynaconf
2219
click
23-
pyproj
20+
pyproj
21+
# Handled in build_sphinx.yml via conda
22+
# suxarray
23+
# schimpy>=1.6.4 # Recommended for compatibility with current code
24+
# vtools3>=3.7.5
25+
# dms-datastore>=0.1.0

0 commit comments

Comments
 (0)