[Maintenance] fix path to requirements.txt in deploy_docs workflow #658
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As much as possible, this file should be kept in sync with | |
# https://github.com/napari/napari/blob/main/.github/workflows/build_docs.yml | |
name: Build PR Docs | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-upload: | |
name: Build & Upload Artifact | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone docs repo | |
uses: actions/checkout@v3 | |
- name: Clone main repo | |
uses: actions/checkout@v3 | |
with: | |
path: napari # place in a named directory | |
repository: napari/napari | |
# ensure version metadata is proper | |
fetch-depth: 0 | |
- name: Copy examples to docs folder | |
run: | | |
cp -R napari/examples . | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: tlambert03/setup-qt-libs@v1 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "napari/[all]" -c "napari/resources/constraints/constraints_py3.10_docs.txt" | |
python -m pip install -r requirements.txt -c "napari/resources/constraints/constraints_py3.10_docs.txt" | |
- name: Testing | |
run: | | |
python -c 'import napari; print(napari.__version__)' | |
python -c 'import napari.layers; print(napari.layers.__doc__)' | |
- name: Build Docs | |
uses: aganders3/headless-gui@v1 | |
env: | |
GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} | |
GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }} | |
with: | |
run: make docs GALLERY_PATH=../examples/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: docs/_build |