Skip to content

Commit 39e26f2

Browse files
authored
CI for checking pixi env on RTFD will succeed (Open-MSS#3002)
1 parent f7fbe50 commit 39e26f2

File tree

5 files changed

+7924
-67
lines changed

5 files changed

+7924
-67
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: RTFD env basics
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
Test-RTFD:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
11+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
12+
with:
13+
pixi-version: latest
14+
cache: true
15+
environments: docs
16+
- name: try sphinx build
17+
timeout-minutes: 20
18+
run: |
19+
pixi run -e docs sphinx-build -T -b html docs docs/html

.readthedocs.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
version: 2
22

33
build:
4-
os: "ubuntu-22.04"
5-
tools:
6-
python: "mambaforge-4.10"
7-
8-
sphinx:
9-
configuration: docs/conf.py
10-
11-
conda:
12-
environment: docs/environment.yml
4+
os: ubuntu-24.04
5+
tools:
6+
python: "latest"
7+
jobs:
8+
create_environment:
9+
- asdf plugin add pixi
10+
- asdf install pixi latest
11+
- asdf global pixi latest
12+
install:
13+
# assuming you have an environment called "docs"
14+
- pixi install -e docs
15+
build:
16+
html:
17+
- pixi run -e docs sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html

docs/environment.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)