Skip to content

Commit fa113fa

Browse files
authored
Merge pull request #46 from dhellmann/fix-doc-build
docs: update requirements for build on rtd
2 parents 790b8ee + f0b245f commit fa113fa

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,30 @@ jobs:
121121

122122
- name: Run
123123
run: tox -e ${{ matrix.tox-environment }}
124+
125+
# Test build the docs
126+
docs:
127+
runs-on: ubuntu-latest
128+
if: ${{ !startsWith(github.ref, 'refs/tags') }}
129+
130+
strategy:
131+
fail-fast: false
132+
133+
steps:
134+
- uses: actions/checkout@v3
135+
with:
136+
fetch-depth: 0
137+
138+
- name: Set up Python
139+
uses: actions/setup-python@v4
140+
with:
141+
# Pin this low because RTD doesn't seem to adopt new
142+
# versions quickly and this ensures we don't have a
143+
# dependency problem with importlib.metadata.
144+
python-version: "3.9"
145+
146+
- name: Install dependencies
147+
run: python -m pip install tox
148+
149+
- name: Run
150+
run: tox -e docs

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pull_request_rules:
5454
- name: Automatic merge on approval
5555
conditions:
5656
- and:
57-
- "check-success=style (docs)"
57+
- "check-success=docs"
5858
- "check-success=style (style)"
5959
- "check-success=style (pkglint)"
6060
- "check-success=Test macOS (3.8)"

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# sphinxcontrib-bitbucket
22
# sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
33
sphinx
4+
# We need importlib.metadata, which was added in 3.10.
5+
importlib_metadata;python_version<'3.10'

0 commit comments

Comments
 (0)