@@ -17,18 +17,28 @@ jobs:
17
17
permissions :
18
18
contents : write
19
19
if : (github.ref == 'refs/heads/master' && github.event_name == 'push') || github.event_name == 'release'
20
- runs-on : ubuntu-latest
20
+ runs-on : ${{ matrix.os }}
21
+ strategy :
22
+ max-parallel : 10
23
+ fail-fast : false
24
+ matrix :
25
+ os : ["ubuntu-latest"]
26
+ python-version : ["3.10"]
21
27
steps :
22
28
- uses : actions/checkout@v4
23
- - uses : actions /setup-python@v5
29
+ - uses : astral-sh /setup-uv@v6
24
30
with :
25
- python-version : " 3.10"
31
+ version : " latest"
32
+ python-version : " ${{ matrix.python-version }}"
33
+ activate-environment : true
34
+ enable-cache : true
35
+ cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
36
+ cache-dependency-glob : |
37
+ **/docs/requirements.txt
38
+ **/requirements-dev.txt
39
+ **/pyproject.toml
26
40
27
41
- run : sudo npm install katex -g
28
- - uses : actions/cache@v4
29
- with :
30
- path : ~/.cache/pip
31
- key : pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}
32
42
33
43
- name : Install docs deps
34
44
run : bash .github/workflows/install_docs_deps.sh
@@ -47,18 +57,27 @@ jobs:
47
57
48
58
linkcheck :
49
59
if : github.event_name == 'pull_request' || github.event_name == 'push'
50
- runs-on : ubuntu-latest
60
+ runs-on : ${{ matrix.os }}
51
61
timeout-minutes : 10
62
+ strategy :
63
+ max-parallel : 10
64
+ fail-fast : false
65
+ matrix :
66
+ os : ["ubuntu-latest"]
67
+ python-version : ["3.10"]
52
68
steps :
53
69
- uses : actions/checkout@v4
54
- - uses : actions/setup-python@v5
55
- with :
56
- python-version : " 3.10"
57
-
58
- - uses : actions/cache@v4
70
+ - uses : astral-sh/setup-uv@v6
59
71
with :
60
- path : ~/.cache/pip
61
- key : pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}
72
+ version : " latest"
73
+ python-version : ${{ matrix.python-version }}
74
+ activate-environment : true
75
+ enable-cache : true
76
+ cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
77
+ cache-dependency-glob : |
78
+ **/docs/requirements.txt
79
+ **/requirements-dev.txt
80
+ **/pyproject.toml
62
81
63
82
- name : Install docs deps
64
83
run : bash .github/workflows/install_docs_deps.sh
@@ -69,18 +88,28 @@ jobs:
69
88
70
89
doctest :
71
90
if : github.event_name == 'pull_request' || github.event_name == 'push'
72
- runs-on : ubuntu-latest
91
+ runs-on : ${{ matrix.os }}
92
+ strategy :
93
+ max-parallel : 10
94
+ fail-fast : false
95
+ matrix :
96
+ os : ["ubuntu-latest"]
97
+ python-version : ["3.10"]
73
98
steps :
74
99
- uses : actions/checkout@v4
75
- - uses : actions /setup-python@v5
100
+ - uses : astral-sh /setup-uv@v6
76
101
with :
77
- python-version : " 3.10"
102
+ version : " latest"
103
+ python-version : " ${{ matrix.python-version }}"
104
+ activate-environment : true
105
+ enable-cache : true
106
+ cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
107
+ cache-dependency-glob : |
108
+ **/docs/requirements.txt
109
+ **/requirements-dev.txt
110
+ **/pyproject.toml
78
111
79
112
- run : sudo npm install katex -g
80
- - uses : actions/cache@v4
81
- with :
82
- path : ~/.cache/pip
83
- key : pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}
84
113
85
114
- name : Install docs deps
86
115
run : bash .github/workflows/install_docs_deps.sh
0 commit comments