Skip to content

Commit

Permalink
Use Python 3.10 to build docs (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Sep 28, 2022
1 parent c44abd2 commit db40475
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,47 @@ 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/
destination: html
- run:
name: make tinybuild
command: |
source venv/bin/activate
make -C numpydoc/tests/tinybuild html
- store_artifacts:
path: numpydoc/tests/tinybuild/_build/html/
Expand Down

0 comments on commit db40475

Please sign in to comment.