Add CI (tests + black) for v7.2#33
Open
poissoncorp wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow that runs the test suite (and a
blackformat check) on push / PR tov7.2, across Python 3.9–3.13.CI (
.github/workflows/tests.yml)setup-python(matrix 3.9–3.13) +setup-dotnet8.0 (the embedded server is a .NET app).pip install -e .→black --check .→ fetch the bundled server →python -m unittest discover -s tests.setup.py sdisthook (populatesravendb_embedded/target/nuget).setuptools/wheelare installed explicitly since modern virtualenvs no longer ship them.pyproject.tomlpinsblackline-length to 120 (matches theravendb-python-clientrepo).Test fixes (required for the suite to be green in CI)
The suite previously assumed a developer machine. Minimal fixes:
test_runtime_framework_version_matcher.test_match_1— was asserting the defaultframework_versioncontains+, but the default is now empty (commit "Don't enforce framework version"). Updated to assert the current "unenforced" contract. Resolution logic stays covered bytest_match_2/3/4.test_custom_provider— the zip/directory external-server tests depended on the current working directory and a pre-builtravendb-server.zip. Now they build the zip from the bundled server and use an absolute path, so they run anywhere.test_secured_basic— hardcodes local Windows HTTPS cert paths; nowskipUnlessthose certs exist (still runs on a dev machine, skips in CI).Verified locally
Ran the exact CI steps in a clean venv (Python 3.12 + .NET 8):
9 tests OK (1 skipped — secured).No
RAVEN_LICENSEneeded — the embedded server runs community edition for these tests.