Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiemh committed Feb 1, 2025
1 parent 01fbe11 commit 4196c0d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
surrealdb-version: ["v2.0.0", "v2.1.0", "v2.1.1", "v2.1.2", "v2.1.3", "v2.1.4"]
name: SurrealDB ${{ matrix.surrealdb-version }} - Python ${{ matrix.python-version }}
surrealdb-version: ["v2.1.0", "v2.1.1", "v2.1.2", "v2.1.3", "v2.1.4"] # v2.0.0 has different UPSERT behaviour
name: Python ${{ matrix.python-version }} - SurrealDB ${{ matrix.surrealdb-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -42,12 +42,17 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Run unit tests
- name: Run unit tests (HTTP)
run: python -m unittest discover -s tests
env:
DOCKER_RUN: "TRUE"
PYTHONPATH: ./src
SURREALDB_URL: http://localhost:8000

- name: Run unit tests (WebSocket)
run: python -m unittest discover -s tests
env:
PYTHONPATH: ./src
SURREALDB_URL: ws://localhost:8000



0 comments on commit 4196c0d

Please sign in to comment.