From 264b17ac804e85e93c1405defbe961a35d690d87 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 27 Sep 2022 17:39:01 -0700 Subject: [PATCH] Use Python 3.10 to build docs --- .circleci/config.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f66c7f3..b2269f47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,33 +2,39 @@ version: 2 jobs: build_docs: docker: - - image: circleci/python:3.7-stretch + - image: "cimg/python:3.10" steps: - checkout - run: - name: Set BASH_ENV - command: | - echo "set -e" >> $BASH_ENV; - echo "export PATH=~/.local/bin:$PATH" >> $BASH_ENV; - sudo apt update - sudo apt install dvipng texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra texlive-generic-extra latexmk texlive-xetex + name: Update apt-get + command: sudo apt-get update + - run: + name: Install TeX + command: sudo apt install dvipng texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra latexmk texlive-xetex - restore_cache: keys: - pip-cache - run: name: Get dependencies and install command: | + python3 -m venv venv + source venv/bin/activate python -m pip install --upgrade pip wheel setuptools python -m pip install --upgrade -r requirements/doc.txt - python -m pip install . python -m pip list - save_cache: key: pip-cache paths: - ~/.cache/pip - run: - name: make html + name: Install + command: | + source venv/bin/activate + pip install -e . + - run: + name: Build docs command: | + source venv/bin/activate make -C doc html - store_artifacts: path: doc/_build/html/ @@ -36,6 +42,7 @@ jobs: - run: name: make tinybuild command: | + source venv/bin/activate make -C numpydoc/tests/tinybuild html - store_artifacts: path: numpydoc/tests/tinybuild/_build/html/