diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 15be6542..12b6be2a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,14 +11,16 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - uses: conda-incubator/setup-miniconda@v2 with: - python-version: 3.8 - - - name: Install dependencies - run: | - python -m pip install -r requirements.txt + channels: conda-forge,nodefaults + channel-priority: strict + mamba-version: '*' + activate-environment: pythia + auto-update-conda: false + python-version: 3.9 + environment-file: ci/environment.yml + use-only-tar-bz2: true - name: Build run: | diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 402d9b9e..17ab997d 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,10 +1,11 @@ # Required version: 2 -sphinx: - configuration: content/conf.py +build: + image: latest + +conda: + environment: ci/environment.yml -python: - version: 3.8 - install: - - requirements: requirements.txt +sphinx: + fail_on_warning: false diff --git a/ci/environment.yml b/ci/environment.yml index cd8bc2f0..054aa465 100644 --- a/ci/environment.yml +++ b/ci/environment.yml @@ -1,8 +1,9 @@ name: pythia channels: - conda-forge + - nodefaults dependencies: - - myst-nb==0.10.1 + - myst-nb==0.12.3 - sphinx-book-theme - sphinx-panels - matplotlib diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4eb50845..00000000 --- a/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -myst-nb==0.10.1 -sphinx-book-theme -sphinx-panels -matplotlib -pandas -pyyaml