File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -238,11 +238,37 @@ jobs:
238238 uses : supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
239239 with :
240240 mongodb-version : 6.0
241- # Async does not support dnspython 1.X, so we don't run test_dns here
241+ # Async and our test_dns do not support dnspython 1.X, so we don't run async or dns tests here
242242 - name : Run tests
243243 shell : bash
244244 run : |
245245 uv venv
246246 source .venv/bin/activate
247247 uv pip install -e ".[test]" --resolution=lowest-direct
248- pytest -v test/asynchronous/test_srv_polling.py test/test_srv_polling.py
248+ pytest -v test/test_srv_polling.py
249+
250+ test_minimum_for_async :
251+ permissions :
252+ contents : read
253+ runs-on : ubuntu-latest
254+ name : Test async's minimum dependencies and Python
255+ steps :
256+ - uses : actions/checkout@v4
257+ with :
258+ persist-credentials : false
259+ - name : Install uv
260+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v5
261+ with :
262+ python-version : ' 3.9'
263+ - name : Start MongoDB
264+ uses : supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
265+ with :
266+ mongodb-version : 6.0
267+ # The lifetime kwarg we use in srv resolution was added to the async resolver API in dnspython 2.1.0
268+ - name : Run tests
269+ shell : bash
270+ run : |
271+ uv venv
272+ source .venv/bin/activate
273+ uv pip install -e ".[test]" --resolution=lowest-direct dnspython==2.1.0 --force-reinstall
274+ pytest -v test/test_srv_polling.py test/test_dns.py test/asynchronous/test_srv_polling.py test/asynchronous/test_dns.py
You can’t perform that action at this time.
0 commit comments