Skip to content

Commit 35138aa

Browse files
committed
Add RTD config
1 parent dfe07f9 commit 35138aa

File tree

4 files changed

+37
-59
lines changed

4 files changed

+37
-59
lines changed

.github/workflows/docs.yml

-58
This file was deleted.

.readthedocs.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "mambaforge-4.10"
7+
8+
conda:
9+
environment: docs/rtd_environment.yaml
10+
11+
sphinx:
12+
builder: html
13+
configuration: docs/conf.py
14+
fail_on_warning: true
15+
16+
# Install regular dependencies.
17+
# Then, install special pinning for RTD.
18+
python:
19+
system_packages: false
20+
install:
21+
- method: pip
22+
path: .
23+
extra_requirements:
24+
- docs
25+
26+
# Don't build any extra formats
27+
formats: []

docs/rtd_environment.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: rtd311
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.11
7+
- matplotlib=3.6
8+
- pip
9+
- graphviz

docs/sample_summaries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run_pytest(test_name):
3636
lambda x: x.name[:-1] in test_name,
3737
pathlib.Path(tmp_dir).glob("*0")
3838
)) / "results"
39-
os.replace(src, dest)
39+
shutil.copytree(src, dest)
4040

4141
return dest
4242

0 commit comments

Comments
 (0)