File tree Expand file tree Collapse file tree 3 files changed +26
-27
lines changed Expand file tree Collapse file tree 3 files changed +26
-27
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,26 @@ jobs:
16
16
steps :
17
17
- name : " Checkout Repository"
18
18
uses : actions/checkout@v4
19
- with :
20
- fetch-tags : true
21
- - name : " Install Python"
19
+ - name : " Setup Python"
22
20
uses : actions/setup-python@v5
23
21
with :
24
22
python-version : " 3.13"
25
- cache : " pip"
26
- cache-dependency-path : " requirements/_locale.txt"
27
- - name : " Install Dependencies"
28
- run : |
29
- python -m pip install --upgrade pip setuptools wheel
30
- pip install -r requirements/_locale.txt
31
- pip install .[speed,voice,docs]
23
+ - name : " Install uv"
24
+ uses : astral-sh/setup-uv@v6
25
+ with :
26
+ enable-cache : true
27
+ - name : Sync dependencies
28
+ run : uv sync --no-python-downloads --group dev --group docs --extra speed --extra voice
32
29
- name : " Get locales"
30
+ env :
31
+ SPHINXBUILD : ${{ github.workspace }}/.venv/bin/sphinx-build
33
32
run : |
34
33
make html
35
34
sphinx-build -b gettext . ./build/locales
36
35
working-directory : ./docs
37
36
- name : " Build locales"
37
+ env :
38
+ SPHINXBUILD : ${{ github.workspace }}/.venv/bin/sphinx-build
38
39
run :
39
40
sphinx-intl update -p ./build/locales ${{ vars.SPHINX_LANGUAGES }}
40
41
working-directory : ./docs
Original file line number Diff line number Diff line change @@ -21,25 +21,26 @@ jobs:
21
21
steps :
22
22
- name : " Checkout Repository"
23
23
uses : actions/checkout@v4
24
- with :
25
- fetch-tags : true
26
- - name : " Install Python"
24
+ - name : " Setup Python"
27
25
uses : actions/setup-python@v5
28
26
with :
29
27
python-version : " 3.13"
30
- cache : " pip"
31
- cache-dependency-path : " requirements/_locale.txt"
32
- - name : " Install Dependencies"
33
- run : |
34
- python -m pip install --upgrade pip setuptools wheel
35
- pip install -r requirements/_locale.txt
36
- pip install .[speed,voice,docs]
28
+ - name : " Install uv"
29
+ uses : astral-sh/setup-uv@v6
30
+ with :
31
+ enable-cache : true
32
+ - name : Sync dependencies
33
+ run : uv sync --no-python-downloads --group dev --group docs --extra speed --extra voice
37
34
- name : " Get locales"
35
+ env :
36
+ SPHINXBUILD : ${{ github.workspace }}/.venv/bin/sphinx-build
38
37
run : |
39
38
make html
40
39
sphinx-build -b gettext . ./build/locales
41
40
working-directory : ./docs
42
41
- name : " Build locales"
42
+ env :
43
+ SPHINXBUILD : ${{ github.workspace }}/.venv/bin/sphinx-build
43
44
run :
44
45
sphinx-intl update -p ./build/locales ${{ vars.SPHINX_LANGUAGES }}
45
46
working-directory : ./docs
Original file line number Diff line number Diff line change 5
5
os : ubuntu-22.04
6
6
tools :
7
7
python : " 3.13"
8
+ jobs :
9
+ post_install :
10
+ - pip install uv
11
+ - UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --all-extras --group docs --link-mode=copy
8
12
9
13
sphinx :
10
14
configuration : docs/conf.py
11
15
fail_on_warning : false
12
16
builder : html
13
-
14
- python :
15
- install :
16
- - method : pip
17
- path : .
18
- extra_requirements :
19
- - docs
You can’t perform that action at this time.
0 commit comments