Skip to content

Commit

Permalink
Fix the docs build (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Aug 24, 2022
1 parent 92f830c commit 060c717
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ jobs:
shell: bash -l {0}
env:
DESC: "Documentation build"
CHANS_DEV: "-c pyviz/label/dev -c conda-forge -c nodefaults"
MPLBACKEND: "Agg"
MOZ_HEADLESS: 1
DISPLAY: ":99.0"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: "100"
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
Expand All @@ -51,33 +47,32 @@ jobs:
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: conda setup
run: |
conda config --set always_yes True
conda install -c pyviz "pyctdev>=0.5"
doit ecosystem_setup
doit env_create ${{ env.CHANS_DEV}} --python=3.7
conda create -n test-environment
conda activate test-environment
conda config --env --append channels pyviz/label/dev --append channels conda-forge
conda config --env --remove channels defaults
conda config --env --set channel_priority strict
conda config --env --show-sources
conda install python=3.9 pyctdev
- name: doit develop_install
run: |
eval "$(conda shell.bash hook)"
conda config --set channel_priority strict
conda activate test-environment
conda list
doit develop_install ${{ env.CHANS_DEV}} -o doc -o examples
pip install sphinxcontrib-napoleon sphinx-copybutton pydata_sphinx_theme
conda install -c conda-forge "nodejs=15.3.0"
doit develop_install -o doc -o examples
- name: doit env_capture
run: |
conda activate test-environment
doit env_capture
- name: sampledata
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
bokeh sampledata
geoviews fetch-data --path=examples
- name: generate rst
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
nbsite generate-rst --org holoviz --project-name geoviews
- name: build docs
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
nbsite build --what=html --output=builtdocs --org holoviz --project-name geoviews
- name: Deploy dev
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
conda activate test-environment
doit test_examples
- name: codecov
if: github.event_name == 'push'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,14 @@ def run(self):
'recommended': _recommended,
'examples_extra': _examples_extra,
'doc': _examples_extra + [
'nbsite >=0.7.1',
'nbsite >=0.7.2rc10',
'cartopy >=0.20.0',
'graphviz',
'lxml',
'selenium',
'pooch',
'pydata-sphinx-theme <0.9.0',
'sphinx-copybutton',
],
'tests': [
'pytest-cov',
Expand Down

0 comments on commit 060c717

Please sign in to comment.