Skip to content

Commit ec1d326

Browse files
committed
Build sphinx docs with python 3.10.
1 parent 5125333 commit ec1d326

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,26 @@ on:
77

88
jobs:
99
sphinx:
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
python-version:
14-
- "3.7"
15-
- "3.8"
16-
- "3.9"
17-
- "3.10"
1810
runs-on: ubuntu-latest
1911
steps:
2012
- uses: actions/checkout@v2
21-
- name: Setup python ${{ matrix.python-version }}
13+
- name: Setup python 3.10
2214
uses: actions/setup-python@v2
2315
with:
24-
python-version: ${{ matrix.python-version }}
16+
python-version: "3.10"
2517
- name: Cache Python dependencies
2618
uses: actions/cache@v2
2719
with:
2820
path: ~/.cache/pip
29-
key: ${{ runner.os }}-pip-${{ hashFiles(format('requirements/{0}.txt', matrix.python-version)) }}
21+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/3.10.txt') }}
3022
restore-keys: |
3123
${{ runner.os }}-pip-
3224
${{ runner.os }}-
3325
- name: Install Python dependencies
3426
run: |
3527
python -m pip install --upgrade pip
3628
pip install wheel
37-
pip install -r requirements/${{ matrix.python-version }}.txt
29+
pip install -r requirements/3.10.txt
3830
- name: Build documentation
3931
run: sphinx-build -nW . docs/_build
4032
- name: Run doctests

.readthedocs.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
# Read the Docs configuration file (see https://docs.readthedocs.io/en/stable/config-file/v2.html
22
# for details).
33

4-
# Required
54
version: 2
65

7-
sphinx:
8-
configuration: conf.py
9-
formats: all
10-
python:
11-
version: "3.7"
12-
install:
13-
- requirements: requirements/3.7.txt
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.10"

0 commit comments

Comments
 (0)