Skip to content

Use Python 3.10 to build docs #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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