@@ -25,18 +25,15 @@ jobs:
2525 - uses : actions/checkout@v7.0.1
2626 with :
2727 persist-credentials : false
28- - name : Install uv
29- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
28+ - name : Install Python tooling
29+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
3030 with :
31- enable-cache : true
3231 python-version : " 3.10"
3332 # Runs before the install so a stale lock fails in seconds rather than
3433 # after the build and typecheck.
3534 - name : Check lockfile is up to date
3635 run : |
3736 uv lock --check
38- - name : Install just
39- run : uv tool install rust-just
4037 - name : Install Python dependencies
4138 run : |
4239 just install
@@ -82,10 +79,10 @@ jobs:
8279 - uses : actions/checkout@v7.0.1
8380 with :
8481 persist-credentials : false
85- - name : Install uv
86- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
82+ - name : Install Python tooling
83+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
8784 with :
88- enable-cache : true
85+ # The beta Python here relies on the action's prerelease default.
8986 python-version : ${{ matrix.python-version }}
9087 - id : setup-mongodb
9188 uses : mongodb-labs/drivers-evergreen-tools@master
@@ -104,17 +101,14 @@ jobs:
104101 - uses : actions/checkout@v7.0.1
105102 with :
106103 persist-credentials : false
107- - name : Install uv
108- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
104+ - name : Install Python tooling
105+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
109106 with :
110- enable-cache : true
111107 python-version : " 3.10"
112108 - id : setup-mongodb
113109 uses : mongodb-labs/drivers-evergreen-tools@master
114110 with :
115111 version : " 8.0"
116- - name : Install just
117- run : uv tool install rust-just
118112 - name : Setup tests
119113 run : COVERAGE=1 just setup-tests
120114 - name : Run tests
@@ -132,19 +126,16 @@ jobs:
132126 - uses : actions/checkout@v7.0.1
133127 with :
134128 persist-credentials : false
135- - name : Install uv
136- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
129+ - name : Install Python tooling
130+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
137131 with :
138- enable-cache : true
139132 python-version : " 3.10"
140- - name : Install just
141- run : uv tool install rust-just
133+ - name : Install dependencies
134+ run : just install
142135 - id : setup-mongodb
143136 uses : mongodb-labs/drivers-evergreen-tools@master
144137 with :
145138 version : " 8.0"
146- - name : Install dependencies
147- run : just install
148139 - name : Run tests
149140 run : |
150141 just setup-tests doctest
@@ -157,13 +148,10 @@ jobs:
157148 - uses : actions/checkout@v7.0.1
158149 with :
159150 persist-credentials : false
160- - name : Install uv
161- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
151+ - name : Install Python tooling
152+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
162153 with :
163- enable-cache : true
164154 python-version : " 3.10"
165- - name : Install just
166- run : uv tool install rust-just
167155 - name : Install dependencies
168156 run : just install
169157 - name : Build docs
@@ -179,16 +167,12 @@ jobs:
179167 - uses : actions/checkout@v7.0.1
180168 with :
181169 persist-credentials : false
182- - name : Install uv
183- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
170+ - name : Install Python tooling
171+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
184172 with :
185- enable-cache : true
186173 python-version : " ${{matrix.python}}"
187- - name : Install just
188- run : uv tool install rust-just
189174 - name : Install dependencies
190- run : |
191- just install
175+ run : just install
192176 - name : Run typecheck
193177 run : |
194178 just typing
@@ -200,16 +184,12 @@ jobs:
200184 - uses : actions/checkout@v7.0.1
201185 with :
202186 persist-credentials : false
203- - name : Install uv
204- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
187+ - name : Install Python tooling
188+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
205189 with :
206- enable-cache : true
207190 python-version : " 3.10"
208- - name : Install just
209- run : uv tool install rust-just
210191 - name : Install dependencies
211- run : |
212- just install
192+ run : just install
213193 - id : setup-mongodb
214194 uses : mongodb-labs/drivers-evergreen-tools@master
215195 - name : Run tests
@@ -290,8 +270,8 @@ jobs:
290270 - uses : actions/checkout@v7.0.1
291271 with :
292272 persist-credentials : false
293- - name : Install uv
294- uses : astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10 .0.1
273+ - name : Install Python tooling
274+ uses : mongodb-labs/drivers-github-tools/python/setup@d518d2c7d04fdec10266c4218c36791a4fcf98d8 # v3 .0.2
295275 with :
296276 python-version : " 3.9"
297277 - id : setup-mongodb
0 commit comments