Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 22 additions & 45 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,15 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "3.10"
# Runs before the install so a stale lock fails in seconds rather than
# after the build and typecheck.
- name: Check lockfile is up to date
run: |
uv lock --check
- name: Install just
run: uv tool install rust-just
- name: Install Python dependencies
run: |
just install
Expand Down Expand Up @@ -82,10 +79,11 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
# The action allows prereleases by default, which the beta Python in
# this matrix needs.
python-version: ${{ matrix.python-version }}
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
Expand All @@ -104,17 +102,14 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "3.10"
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
with:
version: "8.0"
- name: Install just
run: uv tool install rust-just
- name: Setup tests
run: COVERAGE=1 just setup-tests
- name: Run tests
Expand All @@ -132,19 +127,15 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "3.10"
- name: Install just
run: uv tool install rust-just
run-install: "true"
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
with:
version: "8.0"
- name: Install dependencies
run: just install
- name: Run tests
run: |
just setup-tests doctest
Expand All @@ -157,15 +148,11 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "3.10"
- name: Install just
run: uv tool install rust-just
- name: Install dependencies
run: just install
run-install: "true"
- name: Build docs
run: just docs

Expand All @@ -179,16 +166,11 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "${{matrix.python}}"
- name: Install just
run: uv tool install rust-just
- name: Install dependencies
run: |
just install
run-install: "true"
- name: Run typecheck
run: |
just typing
Expand All @@ -200,16 +182,11 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
enable-cache: true
python-version: "3.10"
- name: Install just
run: uv tool install rust-just
- name: Install dependencies
run: |
just install
run-install: "true"
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
- name: Run tests
Expand Down Expand Up @@ -290,8 +267,8 @@ jobs:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install Python tooling
uses: blink1073/drivers-github-tools/python/setup@da9b1e22992959ae8cc60d34d6a0eda3fdd31911
with:
python-version: "3.9"
- id: setup-mongodb
Expand Down
Loading