diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2022-09-27 18:41:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 18:41:00 -0700 |
commit | db404754f0cd7bb0927280e769bc8c9d95a2e42d (patch) | |
tree | fc44278e433686bd0c1af6e6f2592fe8e4cdf5ea | |
parent | c44abd2fed2db91b3573dd95141524f2e57d66e3 (diff) | |
download | numpydoc-db404754f0cd7bb0927280e769bc8c9d95a2e42d.tar.gz |
Use Python 3.10 to build docs (#436)
-rw-r--r-- | .circleci/config.yml | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f66c7f..b2269f4 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/ |