Skip to content

Commit 24f55b6

Browse files
authored
Merge pull request #2829 from bagerard/fix_readthedocs_build
fix RTD build error
2 parents 12ac6d8 + 4b56156 commit 24f55b6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/github-actions.yml

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
build_doc_dryrun:
116116
# ensures that readthedocs can be built continuously
117117
# to avoid that it breaks when new releases are being created
118+
# The way RTD works is that it builds the doc on its side
119+
# builds are visible at https://readthedocs.org/projects/mongoengine-odm/builds/
118120
runs-on: ubuntu-latest
119121
steps:
120122
- uses: actions/checkout@v3

.readthedocs.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ sphinx:
1111

1212
# Optionally set the version of Python and requirements required to build your docs
1313
python:
14-
version: 3.7
1514
install:
1615
- requirements: docs/requirements.txt
1716
# docs/conf.py is importing mongoengine
1817
# so mongoengine needs to be installed as well
1918
- method: setuptools
2019
path: .
20+
21+
# Specify the build environment
22+
build:
23+
os: ubuntu-22.04
24+
tools:
25+
python: "3.9"

0 commit comments

Comments
 (0)