@@ -50,33 +50,31 @@ jobs:
50
50
cppcheck pymongo
51
51
52
52
build :
53
- # supercharge/mongodb-github-action requires containers so we don't test other platforms
54
53
runs-on : ${{ matrix.os }}
55
54
strategy :
56
55
fail-fast : false
57
56
matrix :
57
+ # Tests currently only pass on ubuntu on GitHub Actions.
58
58
os : [ubuntu-latest]
59
- python-version : ["3.9", "pypy-3.10", "3.13", "3.13t"]
59
+ python-version : ["3.9", "pypy-3.10", "3.13t"]
60
+ mongodb-version : ["8.0"]
61
+
60
62
name : CPython ${{ matrix.python-version }}-${{ matrix.os }}
61
63
steps :
62
64
- uses : actions/checkout@v4
63
65
with :
64
66
persist-credentials : false
65
- - name : Install just
66
- uses : extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
67
67
- name : Install uv
68
68
uses : astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v5
69
69
with :
70
70
enable-cache : true
71
71
python-version : ${{ matrix.python-version }}
72
- - name : Install dependencies
73
- run : just install
74
- - name : Start MongoDB
75
- uses : supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
72
+ - id : setup-mongodb
73
+ uses : mongodb-labs/drivers-evergreen-tools@master
76
74
with :
77
- mongodb- version : 6.0
75
+ version : " ${{ matrix.mongodb-version }} "
78
76
- name : Run tests
79
- run : just test
77
+ run : uv run --extra test pytest -v
80
78
81
79
doctest :
82
80
runs-on : ubuntu-latest
@@ -92,10 +90,10 @@ jobs:
92
90
with :
93
91
enable-cache : true
94
92
python-version : " 3.9"
95
- - name : Start MongoDB
96
- uses : supercharge/ mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
93
+ - id : setup-mongodb
94
+ uses : mongodb-labs/drivers-evergreen-tools@master
97
95
with :
98
- mongodb- version : ' 8.0.0-rc4 '
96
+ version : " 8.0"
99
97
- name : Install dependencies
100
98
run : just install
101
99
- name : Run tests
@@ -210,8 +208,8 @@ jobs:
210
208
cache-dependency-path : ' sdist/test/pyproject.toml'
211
209
# Test sdist on lowest supported Python
212
210
python-version : ' 3.9'
213
- - name : Start MongoDB
214
- uses : supercharge/ mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
211
+ - id : setup-mongodb
212
+ uses : mongodb-labs/drivers-evergreen-tools@master
215
213
- name : Run connect test from sdist
216
214
shell : bash
217
215
run : |
@@ -234,10 +232,10 @@ jobs:
234
232
uses : astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v5
235
233
with :
236
234
python-version : ' 3.9'
237
- - name : Start MongoDB
238
- uses : supercharge/ mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
235
+ - id : setup-mongodb
236
+ uses : mongodb-labs/drivers-evergreen-tools@master
239
237
with :
240
- mongodb- version : 6.0
238
+ version : " 8.0 "
241
239
# Async and our test_dns do not support dnspython 1.X, so we don't run async or dns tests here
242
240
- name : Run tests
243
241
shell : bash
@@ -260,10 +258,10 @@ jobs:
260
258
uses : astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v5
261
259
with :
262
260
python-version : ' 3.9'
263
- - name : Start MongoDB
264
- uses : supercharge/ mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
261
+ - id : setup-mongodb
262
+ uses : mongodb-labs/drivers-evergreen-tools@master
265
263
with :
266
- mongodb- version : 6.0
264
+ version : " 8.0 "
267
265
# The lifetime kwarg we use in srv resolution was added to the async resolver API in dnspython 2.1.0
268
266
- name : Run tests
269
267
shell : bash
0 commit comments