-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PYTHON-4389 Add GitHub Actions test for python (#825)
* PYTHON-4389 Add GitHub Actions test for python * fix checkout * pull the source tag * fix the checkout * switch to build mode:none
- Loading branch information
Showing
4 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Python Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
paths: | ||
- bindings/python/* | ||
|
||
concurrency: | ||
group: python-test-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
working-directory: ./bindings/python | ||
shell: bash -eux {0} | ||
|
||
jobs: | ||
|
||
static: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: "Run pre-commit" | ||
working-directory: . | ||
run: | | ||
pip install -U -q pre-commit | ||
pre-commit run --all-files --hook-stage manual | ||
- run: | | ||
pip install check-manifest | ||
check-manifest -v | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.8", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
allow-prereleases: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build and test dist files | ||
run: | | ||
export LIBMONGOCRYPT_VERSION=$(cat ./libmongocrypt-version.txt) | ||
git fetch origin $LIBMONGOCRYPT_VERSION | ||
bash ./release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters