Skip to content

adding unittest for base connection object #146

adding unittest for base connection object

adding unittest for base connection object #146

Workflow file for this run

name: unit-tests
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
run-unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
surrealdb-version: ["v2.0.0", "v2.1.1", "v2.1.2"] # Issue with v2.1.0
name: Run unit test SurrealDB ${{ matrix.surrealdb-version }} - Python Version ${{ matrix.python-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download and install surrealdb
run: curl -sSf https://install.surrealdb.com | sh -s -- --version ${{ matrix.surrealdb-version }}
- name: Start surrealdb
run: surreal start memory -u root -p root --log trace & sleep 5 &
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run unit tests
env:
SURREALDB_URL: "http://localhost:8000"
run: python -m unittest discover -s tests