Skip to content

Commit dd50c14

Browse files
committed
Use uv in doc CI + merge some dep installs
Similar rationale as for the test CI
1 parent 41c8683 commit dd50c14

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/verify-docs-gen.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ jobs:
1717
python-version: '3.8'
1818
- name: Full dependencies
1919
run: |
20-
# up to k2 compatible torch version
21-
pip install torch==2.1.2 torchaudio==2.1.2
22-
pip install -r requirements.txt
23-
pip install --editable .
24-
pip install -r docs/docs-requirements.txt
25-
pip install k2==1.24.4.dev20231220+cpu.torch2.1.2 -f https://k2-fsa.github.io/k2/cpu.html
20+
pip install uv
21+
uv pip install --system ctc-segmentation # ctc-segmentation is funky with uv due to their oldest-supported-numpy dependency
22+
uv pip install --system -r requirements.txt -r docs/docs-requirements.txt torch==2.2.1+cpu torchaudio==2.2.1+cpu --extra-index-url https://download.pytorch.org/whl/cpu k2==1.24.4.dev20240223+cpu.torch2.2.1 --find-links https://k2-fsa.github.io/k2/cpu.html kaldilm==1.15.1 spacy==3.7.4 flair==0.13.1
23+
uv pip install --system --editable . --no-deps # already installed pinned deps from requirements.txt, we're good
2624
- name: Generate docs
2725
run: |
2826
cd docs

0 commit comments

Comments
 (0)