@@ -22,13 +22,13 @@ jobs:
22
22
- uses : actions/checkout@v4
23
23
with :
24
24
persist-credentials : false
25
- - uses : actions/setup-python@v5
26
- with :
27
- python-version : " 3.9"
28
- cache : ' pip'
29
- cache-dependency-path : ' pyproject.toml'
30
25
- name : Install just
31
26
uses : extractions/setup-just@v2
27
+ - name : Install uv
28
+ uses : astral-sh/setup-uv@v5
29
+ with :
30
+ enable-cache : true
31
+ python-version : " 3.9"
32
32
- name : Install Python dependencies
33
33
run : |
34
34
just install
@@ -61,42 +61,21 @@ jobs:
61
61
- uses : actions/checkout@v4
62
62
with :
63
63
persist-credentials : false
64
- - if : ${{ matrix.python-version == '3.13t' }}
65
- name : Setup free-threaded Python
66
- uses :
deadsnakes/[email protected]
67
- with :
68
- python-version : 3.13
69
- nogil : true
70
- - if : ${{ matrix.python-version != '3.13t' }}
71
- name : Setup Python
72
- uses : actions/setup-python@v5
73
- with :
74
- python-version : ${{ matrix.python-version }}
75
- cache : ' pip'
76
- cache-dependency-path : ' pyproject.toml'
77
- allow-prereleases : true
78
64
- name : Install just
79
65
uses : extractions/setup-just@v2
66
+ - name : Install uv
67
+ uses : astral-sh/setup-uv@v5
68
+ with :
69
+ enable-cache : true
70
+ python-version : ${{ matrix.python-version }}
80
71
- name : Install dependencies
81
- run : |
82
- if [[ "${{ matrix.python-version }}" == "3.13t" ]]; then
83
- # Just can't be installed on 3.13t, use pytest directly.
84
- pip install .
85
- pip install -r requirements/test.txt
86
- else
87
- just install
88
- fi
72
+ run : just install
89
73
- name : Start MongoDB
90
74
uses :
supercharge/[email protected]
91
75
with :
92
76
mongodb-version : 6.0
93
77
- name : Run tests
94
- run : |
95
- if [[ "${{ matrix.python-version }}" == "3.13t" ]]; then
96
- pytest -v --durations=5 --maxfail=10
97
- else
98
- just test
99
- fi
78
+ run : just test
100
79
101
80
doctest :
102
81
runs-on : ubuntu-latest
@@ -105,24 +84,21 @@ jobs:
105
84
- uses : actions/checkout@v4
106
85
with :
107
86
persist-credentials : false
108
- - name : Setup Python
109
- uses : actions/setup-python@v5
110
- with :
111
- python-version : " 3.9"
112
- cache : ' pip'
113
- cache-dependency-path : ' pyproject.toml'
114
87
- name : Install just
115
88
uses : extractions/setup-just@v2
89
+ - name : Install uv
90
+ uses : astral-sh/setup-uv@v5
91
+ with :
92
+ enable-cache : true
93
+ python-version : " 3.9"
116
94
- name : Start MongoDB
117
95
uses :
supercharge/[email protected]
118
96
with :
119
97
mongodb-version : ' 8.0.0-rc4'
120
98
- name : Install dependencies
121
- run : |
122
- just install
99
+ run : just install
123
100
- name : Run tests
124
- run : |
125
- just docs-test
101
+ run : just docs-test
126
102
127
103
docs :
128
104
name : Docs Checks
@@ -131,20 +107,17 @@ jobs:
131
107
- uses : actions/checkout@v4
132
108
with :
133
109
persist-credentials : false
134
- - uses : actions/setup-python@v5
110
+ - name : Install uv
111
+ uses : astral-sh/setup-uv@v5
135
112
with :
136
- cache : ' pip'
137
- cache-dependency-path : ' pyproject.toml'
138
- # Build docs on lowest supported Python for furo
139
- python-version : ' 3.9'
113
+ enable-cache : true
114
+ python-version : " 3.9"
140
115
- name : Install just
141
116
uses : extractions/setup-just@v2
142
117
- name : Install dependencies
143
- run : |
144
- just install
118
+ run : just install
145
119
- name : Build docs
146
- run : |
147
- just docs
120
+ run : just docs
148
121
149
122
linkcheck :
150
123
name : Link Check
@@ -153,20 +126,17 @@ jobs:
153
126
- uses : actions/checkout@v4
154
127
with :
155
128
persist-credentials : false
156
- - uses : actions/setup-python@v5
129
+ - name : Install uv
130
+ uses : astral-sh/setup-uv@v5
157
131
with :
158
- cache : ' pip'
159
- cache-dependency-path : ' pyproject.toml'
160
- # Build docs on lowest supported Python for furo
161
- python-version : ' 3.9'
132
+ enable-cache : true
133
+ python-version : " 3.9"
162
134
- name : Install just
163
135
uses : extractions/setup-just@v2
164
136
- name : Install dependencies
165
- run : |
166
- just install
137
+ run : just install
167
138
- name : Build docs
168
- run : |
169
- just docs-linkcheck
139
+ run : just docs-linkcheck
170
140
171
141
typing :
172
142
name : Typing Tests
@@ -178,11 +148,11 @@ jobs:
178
148
- uses : actions/checkout@v4
179
149
with :
180
150
persist-credentials : false
181
- - uses : actions/setup-python@v5
151
+ - name : Install uv
152
+ uses : astral-sh/setup-uv@v5
182
153
with :
154
+ enable-cache : true
183
155
python-version : " ${{matrix.python}}"
184
- cache : ' pip'
185
- cache-dependency-path : ' pyproject.toml'
186
156
- name : Install just
187
157
uses : extractions/setup-just@v2
188
158
- name : Install dependencies
0 commit comments