Skip to content

Commit e84fb43

Browse files
committed
PYTHON-5382 - Add a test with min dependencies
1 parent 65f7c54 commit e84fb43

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,24 @@ jobs:
220220
which python
221221
pip install -e ".[test]"
222222
PYMONGO_MUST_CONNECT=1 pytest -v -k client_context
223+
224+
test_minimum:
225+
runs-on: ubuntu-latest
226+
name: Test using minimum dependencies and supported Python
227+
steps:
228+
- uses: actions/checkout@v4
229+
with:
230+
persist-credentials: false
231+
- name: Install uv
232+
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v5
233+
with:
234+
python-version: '3.9'
235+
- name: Start MongoDB
236+
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
237+
with:
238+
mongodb-version: 6.0
239+
- name: Run connect test
240+
shell: bash
241+
run: |
242+
uv sync --python=${{ matrix.python-version }} --resolution=lowest-direct
243+
PYMONGO_MUST_CONNECT=1 pytest -v -k client_context

0 commit comments

Comments
 (0)