diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..62d3565 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,28 @@ +name: Python Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.12.2'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r tests/requirements.txt + - name: Test with pytest + run: | + pytest \ No newline at end of file diff --git a/data_quality/requirements.txt b/data_quality/requirements.txt index 7a96e1c..e2862f3 100644 --- a/data_quality/requirements.txt +++ b/data_quality/requirements.txt @@ -7,7 +7,7 @@ pandas>=2.0.0 # data handling termcolor>=2.3.0 # colored terminal output # Database drivers (uncomment your database type) -# duckdb>=0.9.0 # DuckDB +# duckdb>=1.0.0 # DuckDB # psycopg2-binary>=2.9.0 # PostgreSQL # sqlalchemy>=2.0.0 # PostgreSQL via SQLAlchemy # trino>=0.327.0 # Trino diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 0000000..3fde8c9 --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,7 @@ +pyyaml>=6.0 +jinja2>=3.1.0 +pandas>=2.0.0 +termcolor>=2.3.0 +duckdb>=1.0.0 +sqlglot>=10.0.0 +pytest>=8.3.3 \ No newline at end of file