diff --git a/.github/workflows/test_file_reader.yml b/.github/workflows/test_file_reader.yml new file mode 100644 index 00000000..7989b6e2 --- /dev/null +++ b/.github/workflows/test_file_reader.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test_file_writer.yml b/.github/workflows/test_file_writer.yml new file mode 100644 index 00000000..1137d20f --- /dev/null +++ b/.github/workflows/test_file_writer.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test_plugin.yml b/.github/workflows/test_plugin.yml new file mode 100644 index 00000000..ea8a9813 --- /dev/null +++ b/.github/workflows/test_plugin.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test_sqlite.yml b/.github/workflows/test_sqlite.yml new file mode 100644 index 00000000..2fe1fd1f --- /dev/null +++ b/.github/workflows/test_sqlite.yml @@ -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 \ No newline at end of file