Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line-length = 120