From c45458e748ba2414b210bf5d6310003389ce4da0 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Thu, 31 Aug 2023 15:44:43 -0700 Subject: [PATCH] github test action --- .github/workflows/tests.yml | 29 +++++++++++++++++++++ tests/test_adapters/__init__.py | 0 tests/{ => test_adapters}/test_adapter.py | 0 tests/test_adapters/test_adapter_dataset.py | 1 + 4 files changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 tests/test_adapters/__init__.py rename tests/{ => test_adapters}/test_adapter.py (100%) create mode 100644 tests/test_adapters/test_adapter_dataset.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..8f889ac --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + +jobs: + build: + strategy: + matrix: + python-version: [3.11] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install .[tests] pytest-md pytest-emoji + + - uses: pavelzw/pytest-action@v2 + with: + emoji: true + verbose: true + job-summary: true diff --git a/tests/test_adapters/__init__.py b/tests/test_adapters/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_adapter.py b/tests/test_adapters/test_adapter.py similarity index 100% rename from tests/test_adapter.py rename to tests/test_adapters/test_adapter.py diff --git a/tests/test_adapters/test_adapter_dataset.py b/tests/test_adapters/test_adapter_dataset.py new file mode 100644 index 0000000..5871ed8 --- /dev/null +++ b/tests/test_adapters/test_adapter_dataset.py @@ -0,0 +1 @@ +import pytest