From 1b71c08353d3483ada01c6707706ff05050ed74b Mon Sep 17 00:00:00 2001 From: Vedant1 Date: Wed, 18 Dec 2024 11:53:24 -0700 Subject: [PATCH] created CI file for sqlalchemy test --- .github/workflows/test_sqlalchemy.yml | 33 +++++++++++++++++++++++++++ dsi/backends/tests/test_sqlalchemy.py | 1 - 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test_sqlalchemy.yml diff --git a/.github/workflows/test_sqlalchemy.yml b/.github/workflows/test_sqlalchemy.yml new file mode 100644 index 00000000..6c77c457 --- /dev/null +++ b/.github/workflows/test_sqlalchemy.yml @@ -0,0 +1,33 @@ +name: sqlalchemy.py test + +on: + push: + branches: + - main + pull_request: + branches: + - main + + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.11'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.sqlalchemy.txt + pip install . + - name: Test reader + run: | + pip install pytest + pytest dsi/backends/tests/test_sqlalchemy.py \ No newline at end of file diff --git a/dsi/backends/tests/test_sqlalchemy.py b/dsi/backends/tests/test_sqlalchemy.py index 5ace3424..9b6092e5 100644 --- a/dsi/backends/tests/test_sqlalchemy.py +++ b/dsi/backends/tests/test_sqlalchemy.py @@ -20,7 +20,6 @@ class Base(DeclarativeBase): pass - class Wildfire(Base): __tablename__ = "wildfire"