diff --git a/.github/workflows/main.workflow.yaml b/.github/workflows/main.workflow.yaml new file mode 100644 index 0000000..54bda2c --- /dev/null +++ b/.github/workflows/main.workflow.yaml @@ -0,0 +1,30 @@ +name: SQLFrame +on: + push: + branches: + - main + pull_request: + types: + - synchronize + - opened +jobs: + run-tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: make install-dev + - name: Run Style + run: make style + - name: Setup Postgres + uses: ikalnytskyi/action-setup-postgres@v6 + - name: Run tests + run: make local-test diff --git a/Makefile b/Makefile index f564fa2..784cdcd 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ install-dev: - pip install -e ".[dev]" + pip install -e ".[dev,duckdb,postgres]" install-pre-commit: pre-commit install diff --git a/setup.py b/setup.py index 8ff52ca..348ff49 100644 --- a/setup.py +++ b/setup.py @@ -29,13 +29,8 @@ ], "dev": [ "duckdb", - "mkdocs==1.4.2", - "mkdocs-include-markdown-plugin==4.0.3", - "mkdocs-material==9.0.5", - "mkdocs-material-extensions==1.1.1", "mypy", "pandas", - "pymdown-extensions", "psycopg", "pyarrow", "pyspark", @@ -47,6 +42,13 @@ "typing_extensions", "types-psycopg2", ], + "docs": [ + "mkdocs==1.4.2", + "mkdocs-include-markdown-plugin==4.0.3", + "mkdocs-material==9.0.5", + "mkdocs-material-extensions==1.1.1", + "pymdown-extensions", + ], "duckdb": [ "duckdb", "pandas",