-
Notifications
You must be signed in to change notification settings - Fork 1.2k
PYTHON-5956 Use shared python/setup action for CI setup #2990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9462e4d
ba7c636
7803470
a50d459
321b406
089acce
e6a666d
364207c
43755aa
36df94b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,18 +25,15 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
|
||
| 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 | ||
|
|
@@ -82,10 +79,10 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| enable-cache: true | ||
| # The beta Python here relies on the action's prerelease default. | ||
| python-version: ${{ matrix.python-version }} | ||
| - id: setup-mongodb | ||
| uses: mongodb-labs/drivers-evergreen-tools@master | ||
|
|
@@ -104,17 +101,14 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| 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 | ||
|
|
@@ -132,19 +126,16 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| enable-cache: true | ||
| python-version: "3.10" | ||
| - name: Install just | ||
| run: uv tool install rust-just | ||
| - name: Install dependencies | ||
| run: just install | ||
| - 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 | ||
|
|
@@ -157,13 +148,10 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| enable-cache: true | ||
| python-version: "3.10" | ||
| - name: Install just | ||
| run: uv tool install rust-just | ||
| - name: Install dependencies | ||
| run: just install | ||
| - name: Build docs | ||
|
|
@@ -179,16 +167,12 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| enable-cache: true | ||
| python-version: "${{matrix.python}}" | ||
| - name: Install just | ||
| run: uv tool install rust-just | ||
| - name: Install dependencies | ||
| run: | | ||
| just install | ||
| run: just install | ||
| - name: Run typecheck | ||
| run: | | ||
| just typing | ||
|
|
@@ -200,16 +184,12 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| enable-cache: true | ||
| python-version: "3.10" | ||
| - name: Install just | ||
| run: uv tool install rust-just | ||
| - name: Install dependencies | ||
| run: | | ||
| just install | ||
| run: just install | ||
| - id: setup-mongodb | ||
| uses: mongodb-labs/drivers-evergreen-tools@master | ||
| - name: Run tests | ||
|
|
@@ -290,8 +270,8 @@ | |
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | ||
| - name: Install Python tooling | ||
| uses: mongodb-labs/drivers-github-tools/python/setup@v3 | ||
|
blink1073 marked this conversation as resolved.
Dismissed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This job manages its own
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! I'll fix this upstream in github-tools, PR coming soon |
||
| with: | ||
| python-version: "3.9" | ||
| - id: setup-mongodb | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.