From 80edeb170892f4eb4ad3d2bda7e9da82ce60dd1b Mon Sep 17 00:00:00 2001 From: Maxime Liquet <35924738+maximlt@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:10:24 +0100 Subject: [PATCH] Doc: build the site without pulling the dev dependencies (#711) --- .github/workflows/docs.yaml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4d0a0e77..69734256 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -35,34 +35,17 @@ jobs: MOZ_HEADLESS: 1 DISPLAY: ":99.0" steps: - - uses: actions/checkout@v3 + - uses: holoviz-dev/holoviz_tasks/install@v0.1a19 with: - fetch-depth: "100" - - uses: conda-incubator/setup-miniconda@v2 - with: - miniconda-version: "latest" - - name: Fetch unshallow - run: git fetch --prune --tags --unshallow -f + name: Documentation + python-version: "3.10" + channels: pyviz,conda-forge,nodefaults + envs: "-o doc -o examples_extra" + cache: true + conda-update: true - name: Set output id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - - name: conda setup - run: | - conda create -n test-environment - conda activate test-environment - conda config --env --append channels pyviz/label/dev --append channels bokeh --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: | - conda activate test-environment - doit develop_install -o doc -o examples_extra - - name: doit env_capture - run: | - conda activate test-environment - doit env_capture - name: download data run: | conda activate test-environment