Skip to content

Commit

Permalink
Created CI files for testing backend and plugin on the open
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant P Iyer committed Sep 5, 2024
1 parent 9c811ad commit 88cc5ba
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_file_reader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: file_reader test

on:
push:
branches:
- main
pull_request:
branches:
- main



jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

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.txt
- name: Test reader
run: |
pip install pytest
pytest dsi/plugins/tests/test_file_reader.py
32 changes: 32 additions & 0 deletions .github/workflows/test_file_writer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: file_writer test

on:
push:
branches:
- main
pull_request:
branches:
- main


jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

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.txt
- name: Test reader
run: |
pip install pytest
pytest dsi/plugins/tests/test_file_writer.py
33 changes: 33 additions & 0 deletions .github/workflows/test_plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: test_plugin.py test

on:
push:
branches:
- main
pull_request:
branches:
- main


jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

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.txt
python -m pip install opencv-python
- name: Test reader
run: |
pip install pytest
pytest dsi/tests/test_plugin.py
33 changes: 33 additions & 0 deletions .github/workflows/test_sqlite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: sqlite.py test

on:
push:
branches:
- main
pull_request:
branches:
- main


jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

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.txt
python -m pip install pyyaml
- name: Test reader
run: |
pip install pytest
pytest dsi/backends/tests/test_sqlite.py

0 comments on commit 88cc5ba

Please sign in to comment.