mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
* support Python 3.11 with Sphinx 5.3+ * Update tox.ini Co-authored-by: Michael R. Crusoe <1330696+mr-c@users.noreply.github.com> Co-authored-by: Benjamin Balder Bach <benjamin@overtag.dk> Co-authored-by: Benjamin Balder Bach <benjaoming@gmail.com>
117 lines
2.6 KiB
YAML
117 lines
2.6 KiB
YAML
version: 2.1
|
|
|
|
orbs:
|
|
node: circleci/node@5.0.2
|
|
|
|
commands:
|
|
run-tox:
|
|
description: "Run tox"
|
|
parameters:
|
|
version:
|
|
type: string
|
|
sphinx-version:
|
|
type: string
|
|
default: "17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,latest"
|
|
steps:
|
|
- checkout
|
|
- run: pip install --user tox~=3.27
|
|
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
|
|
run-build:
|
|
description: "Ensure built assets are up to date"
|
|
steps:
|
|
- checkout
|
|
- node/install:
|
|
node-version: '14.20'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run:
|
|
name: Ensure built assets are up to date
|
|
command: |
|
|
if [[ `git status sphinx_rtd_theme/ --porcelain` ]]
|
|
then
|
|
echo "ERROR: assets are out of date. Make sure to run 'npm run build' on your branch."
|
|
git status sphinx_rtd_theme/ --porcelain
|
|
exit 1
|
|
fi
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: 'cimg/python:3.9-node'
|
|
steps:
|
|
- run-build: {}
|
|
py27:
|
|
docker:
|
|
- image: 'cimg/python:2.7'
|
|
steps:
|
|
- run-tox:
|
|
version: py27
|
|
sphinx-version: "17,18"
|
|
py36:
|
|
docker:
|
|
- image: 'cimg/python:3.6'
|
|
steps:
|
|
- run-tox:
|
|
version: py36
|
|
py37:
|
|
docker:
|
|
- image: 'cimg/python:3.7'
|
|
steps:
|
|
- run-tox:
|
|
version: py37
|
|
py38:
|
|
docker:
|
|
- image: 'cimg/python:3.8'
|
|
steps:
|
|
- run-tox:
|
|
version: py38
|
|
sphinx-version: "17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
|
|
py39:
|
|
docker:
|
|
- image: 'cimg/python:3.9'
|
|
steps:
|
|
- run-tox:
|
|
version: py39
|
|
sphinx-version: "17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
|
|
py310:
|
|
docker:
|
|
- image: 'cimg/python:3.10'
|
|
steps:
|
|
- run-tox:
|
|
version: py310
|
|
sphinx-version: "42,43,44,45,50,51,52,53,60,latest"
|
|
py311:
|
|
docker:
|
|
- image: 'cimg/python:3.11'
|
|
steps:
|
|
- run-tox:
|
|
version: py311
|
|
sphinx-version: "53,60,latest"
|
|
|
|
workflows:
|
|
version: 2
|
|
tests:
|
|
jobs:
|
|
- build
|
|
- py311:
|
|
requires:
|
|
- build
|
|
- py310:
|
|
requires:
|
|
- build
|
|
- py39:
|
|
requires:
|
|
- build
|
|
- py38:
|
|
requires:
|
|
- build
|
|
- py37:
|
|
requires:
|
|
- build
|
|
- py36:
|
|
requires:
|
|
- build
|
|
- py27:
|
|
requires:
|
|
- build
|