Skip to content

Commit db40475

Browse files
Use Python 3.10 to build docs (#436)
1 parent c44abd2 commit db40475

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.circleci/config.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,47 @@ version: 2
22
jobs:
33
build_docs:
44
docker:
5-
- image: circleci/python:3.7-stretch
5+
- image: "cimg/python:3.10"
66
steps:
77
- checkout
88
- run:
9-
name: Set BASH_ENV
10-
command: |
11-
echo "set -e" >> $BASH_ENV;
12-
echo "export PATH=~/.local/bin:$PATH" >> $BASH_ENV;
13-
sudo apt update
14-
sudo apt install dvipng texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra texlive-generic-extra latexmk texlive-xetex
9+
name: Update apt-get
10+
command: sudo apt-get update
11+
- run:
12+
name: Install TeX
13+
command: sudo apt install dvipng texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra latexmk texlive-xetex
1514
- restore_cache:
1615
keys:
1716
- pip-cache
1817
- run:
1918
name: Get dependencies and install
2019
command: |
20+
python3 -m venv venv
21+
source venv/bin/activate
2122
python -m pip install --upgrade pip wheel setuptools
2223
python -m pip install --upgrade -r requirements/doc.txt
23-
python -m pip install .
2424
python -m pip list
2525
- save_cache:
2626
key: pip-cache
2727
paths:
2828
- ~/.cache/pip
2929
- run:
30-
name: make html
30+
name: Install
31+
command: |
32+
source venv/bin/activate
33+
pip install -e .
34+
- run:
35+
name: Build docs
3136
command: |
37+
source venv/bin/activate
3238
make -C doc html
3339
- store_artifacts:
3440
path: doc/_build/html/
3541
destination: html
3642
- run:
3743
name: make tinybuild
3844
command: |
45+
source venv/bin/activate
3946
make -C numpydoc/tests/tinybuild html
4047
- store_artifacts:
4148
path: numpydoc/tests/tinybuild/_build/html/

0 commit comments

Comments
 (0)