Skip to content

Commit

Permalink
add action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eakmanrq committed May 18, 2024
1 parent f83590e commit 5f18d1d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.workflow.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
install-dev:
pip install -e ".[dev]"
pip install -e ".[dev,duckdb,postgres]"

install-pre-commit:
pre-commit install
Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5f18d1d

Please sign in to comment.