Skip to content

Commit 3027579

Browse files
Update build_napari.yml to match the changes in napari/docs (#186)
This PR updates the job that builds napari docs for the latest changes, e.g. napari/docs#591 Additionally uses `html-noplot` to skip the gallery to make the run a bit faster.
1 parent 7e810b5 commit 3027579

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/build_napari.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ jobs:
3939
with:
4040
python-version: "3.10"
4141
cache-dependency-path: |
42-
napari/setup.cfg
43-
docs/requirements.txt
42+
napari/pyproject.toml
4443
4544
- uses: tlambert03/setup-qt-libs@v1
4645

4746
- name: Install napari Dependencies
4847
run: |
4948
python -m pip install --upgrade pip
50-
python -m pip install "napari/[all]"
49+
python -m pip install "napari/[pyqt5, docs]"
5150
env:
5251
PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.10_docs.txt
5352

@@ -56,12 +55,6 @@ jobs:
5655
python -c 'import napari; print(napari.__version__)'
5756
python -c 'import napari.layers; print(napari.layers.__doc__)'
5857
59-
- name: Install napari-docs Dependencies
60-
run: |
61-
python -m pip install -qr ${{ github.workspace }}/napari-docs/requirements.txt
62-
env:
63-
PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.10_docs.txt
64-
6558
# Build and install the theme package.
6659
- name: Build and install theme
6760
env:
@@ -78,8 +71,8 @@ jobs:
7871
GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }}
7972
PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.10_docs.txt
8073
with:
81-
# using html instead of docs will skip installing requirements
82-
run: make -C napari-docs html
74+
# using html-noplot to skip the gallery for faster builds
75+
run: make -C napari-docs html-noplot
8376
# skipping setup stops the action from running the default (tiling) window manager
8477
# the window manager is not necessary for docs builds at this time and it was causing
8578
# problems with screenshots (https://github.com/napari/docs/issues/285)

0 commit comments

Comments
 (0)