Debian Codegraph @

.circleci/config.yml

raw
1 version: 2.1
2
3 orbs:
4 node: circleci/[email protected]
5
6 commands:
7 run-tox:
8 description: "Run tox"
9 parameters:
10 version:
11 type: string
12 sphinx-version:
13 type: string
14 default: "latest"
15 steps:
16 - checkout
17 # We cannot upgrade to Tox4 because running generative environments doesn't work.
18 # I guess it has changed its syntax or similar.
19 # $ tox run -e "py310-sphinx{50,51}"
20 # ROOT: HandledError| provided environments not found in configuration file: ['51}']
21 - run: pip install --user 'tox~=3.27'
22 - run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
23 run-build:
24 description: "Ensure built assets are up to date"
25 steps:
26 - checkout
27 - node/install:
28 node-version: '14.20'
29 - run: npm ci
30 - run: npm run build
31 - run:
32 name: Ensure built assets are up to date
33 command: |
34 if [[ `git status sphinx_rtd_theme/ --porcelain` ]]
35 then
36 echo "ERROR: assets are out of date. Make sure to run 'npm run build' on your branch."
37 git status sphinx_rtd_theme/ --porcelain
38 exit 1
39 fi
40
41 jobs:
42 build:
43 docker:
44 - image: 'cimg/python:3.9-node'
45 steps:
46 - run-build: {}
47 py38:
48 docker:
49 - image: 'cimg/python:3.8'
50 steps:
51 - run-tox:
52 version: py38
53 sphinx-version: "60,61,62,70,71"
54 py39:
55 docker:
56 - image: 'cimg/python:3.9'
57 steps:
58 - run-tox:
59 version: py39
60 sphinx-version: "60,61,62,70,71,72,73,74"
61 py310:
62 docker:
63 - image: 'cimg/python:3.10'
64 steps:
65 - run-tox:
66 version: py310
67 sphinx-version: "60,61,62,70,71,72,73,74,80"
68 py311:
69 docker:
70 - image: 'cimg/python:3.11'
71 steps:
72 - run-tox:
73 version: py311
74 sphinx-version: "72,73,74,80,81,82,90,latest"
75
76 py312:
77 docker:
78 - image: 'cimg/python:3.12'
79 steps:
80 - run-tox:
81 version: py312
82 sphinx-version: "72,73,74,80,81,82,90,latest,dev"
83
84 py313:
85 docker:
86 - image: 'cimg/python:3.13'
87 steps:
88 - run-tox:
89 version: py313
90 sphinx-version: "72,73,74,80,81,82,90,latest,dev"
91
92 py314:
93 docker:
94 - image: 'cimg/python:3.14'
95 steps:
96 - run-tox:
97 version: py314
98 sphinx-version: "81,82,90,latest,dev"
99
100 workflows:
101 version: 2
102 tests:
103 jobs:
104 - build
105 - py314:
106 requires:
107 - build
108 - py313:
109 requires:
110 - build
111 - py312:
112 requires:
113 - build
114 - py311:
115 requires:
116 - build
117 - py310:
118 requires:
119 - build
120 - py39:
121 requires:
122 - build
123 - py38:
124 requires:
125 - build