Skip to content

Commit b730ccb

Browse files
author
Kevin Paul
authored
Merge pull request #72 from ProjectPythia/use-conda-on-rtd
Use conda
2 parents 1e8302d + d505b1e commit b730ccb

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

Diff for: .github/workflows/ci.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Set up Python 3.8
15-
uses: actions/setup-python@v2
14+
- uses: conda-incubator/setup-miniconda@v2
1615
with:
17-
python-version: 3.8
18-
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install -r requirements.txt
16+
channels: conda-forge,nodefaults
17+
channel-priority: strict
18+
mamba-version: '*'
19+
activate-environment: pythia
20+
auto-update-conda: false
21+
python-version: 3.9
22+
environment-file: ci/environment.yml
23+
use-only-tar-bz2: true
2224

2325
- name: Build
2426
run: |

Diff for: .readthedocs.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Required
22
version: 2
33

4-
sphinx:
5-
configuration: content/conf.py
4+
build:
5+
image: latest
6+
7+
conda:
8+
environment: ci/environment.yml
69

7-
python:
8-
version: 3.8
9-
install:
10-
- requirements: requirements.txt
10+
sphinx:
11+
fail_on_warning: false

Diff for: ci/environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: pythia
22
channels:
33
- conda-forge
4+
- nodefaults
45
dependencies:
5-
- myst-nb==0.10.1
6+
- myst-nb==0.12.3
67
- sphinx-book-theme
78
- sphinx-panels
89
- matplotlib

Diff for: requirements.txt

-6
This file was deleted.

0 commit comments

Comments
 (0)