From 302c87581b2c6c22a378d934735e6f9fde6af8ec Mon Sep 17 00:00:00 2001 From: Gracjan Sadowicz Date: Fri, 19 Jun 2026 11:39:05 +0200 Subject: [PATCH] Add CI (tests + black) for v7.2 --- .github/workflows/tests.yml | 44 +++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 pyproject.toml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..fb92aa4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,44 @@ +name: tests + +on: + push: + branches: [v7.2] + pull_request: + branches: [v7.2] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + # The test driver runs the embedded RavenDB server (a .NET application); + # the server binaries ship inside the ravendb-embedded dependency wheel. + - name: Set up .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0" + + - name: Install package + run: | + python -m pip install --upgrade pip + pip install -e . + + - name: Check formatting (black) + run: | + pip install black + black --check . + + - name: Run tests + run: python -m unittest discover -s tests diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..55ec8d7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 120