-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into convert-sessions-tests
- Loading branch information
Showing
26 changed files
with
1,466 additions
and
314 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -o errexit # Exit the script with error if any of the commands fail | ||
set -x | ||
|
||
. .evergreen/utils.sh | ||
|
||
if [ -z "$PYTHON_BINARY" ]; then | ||
PYTHON_BINARY=$(find_python3) | ||
fi | ||
|
||
if $PYTHON_BINARY -m hatch --version; then | ||
run_hatch() { | ||
$PYTHON_BINARY hatch run "$@" | ||
} | ||
else # No toolchain hatch present, set up virtualenv before installing hatch | ||
createvirtualenv "$PYTHON_BINARY" hatchenv | ||
trap "deactivate; rm -rf hatchenv" EXIT HUP | ||
python -m pip install -q hatch | ||
run_hatch() { | ||
python -m hatch run "$@" | ||
} | ||
fi | ||
|
||
run_hatch "${@:1}" |
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
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
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
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,10 @@ | ||
#!/bin/bash | ||
set -o errexit # Exit the script with error if any of the commands fail | ||
set -o xtrace | ||
|
||
if [ -z "${DRIVERS_TOOLS}" ]; then | ||
echo "Missing environment variable DRIVERS_TOOLS" | ||
fi | ||
|
||
bash ${DRIVERS_TOOLS}/.evergreen/csfle/stop-servers.sh | ||
rm -rf libmongocrypt/ libmongocrypt_git/ libmongocrypt.tar.gz mongocryptd.pid |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -27,18 +27,18 @@ jobs: | |
cache-dependency-path: 'pyproject.toml' | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install -U pip tox | ||
python -m pip install -U pip hatch | ||
- name: Run linters | ||
run: | | ||
tox -m lint-manual | ||
hatch run lint:run-manual | ||
- name: Run compilation | ||
run: | | ||
export PYMONGO_C_EXT_MUST_BUILD=1 | ||
pip install -v -e . | ||
python tools/fail_if_no_c.py | ||
- name: Run typecheck | ||
run: | | ||
tox -m typecheck | ||
hatch run typing:check | ||
- run: | | ||
sudo apt-get install -y cppcheck | ||
- run: | | ||
|
@@ -64,17 +64,23 @@ jobs: | |
allow-prereleases: true | ||
- name: Install dependencies | ||
run: | | ||
pip install -q tox | ||
pip install -U pip | ||
if [ "${{ matrix.python-version }}" == "3.13" ]; then | ||
pip install --pre cffi setuptools | ||
pip install --no-build-isolation hatch | ||
else | ||
pip install hatch | ||
fi | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 6.0 | ||
- name: Run tests | ||
run: | | ||
tox -m test | ||
hatch run test:test | ||
- name: Run async tests | ||
run: | | ||
tox -m test-async | ||
hatch run test:test-async | ||
doctest: | ||
runs-on: ubuntu-latest | ||
|
@@ -89,14 +95,14 @@ jobs: | |
cache-dependency-path: 'pyproject.toml' | ||
- name: Install dependencies | ||
run: | | ||
pip install -q tox | ||
pip install -U hatch pip | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 4.4 | ||
- name: Run tests | ||
run: | | ||
tox -m doc-test | ||
hatch run doctest:test | ||
docs: | ||
name: Docs Checks | ||
|
@@ -111,10 +117,10 @@ jobs: | |
python-version: '3.8' | ||
- name: Install dependencies | ||
run: | | ||
pip install -q tox | ||
pip install -U pip hatch | ||
- name: Build docs | ||
run: | | ||
tox -m doc | ||
hatch run doc:build | ||
linkcheck: | ||
name: Link Check | ||
|
@@ -129,10 +135,10 @@ jobs: | |
python-version: '3.8' | ||
- name: Install dependencies | ||
run: | | ||
pip install -q tox | ||
pip install -U pip hatch | ||
- name: Build docs | ||
run: | | ||
tox -m linkcheck | ||
hatch run doc:linkcheck | ||
typing: | ||
name: Typing Tests | ||
|
@@ -149,10 +155,10 @@ jobs: | |
cache-dependency-path: 'pyproject.toml' | ||
- name: Install dependencies | ||
run: | | ||
pip install -q tox | ||
pip install -U pip hatch | ||
- name: Run typecheck | ||
run: | | ||
tox -m typecheck | ||
hatch run typing:check | ||
make_sdist: | ||
runs-on: ubuntu-latest | ||
|
Oops, something went wrong.