-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
6,894 additions
and
9,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ on: | |
push: | ||
paths: | ||
- README.md | ||
- poetry.lock | ||
- uv.lock | ||
- pyproject.toml | ||
- requirements-dev.txt | ||
pull_request: | ||
paths: | ||
- README.md | ||
- poetry.lock | ||
- uv.lock | ||
- pyproject.toml | ||
- requirements-dev.txt | ||
|
||
|
@@ -23,6 +23,11 @@ env: | |
SQLALCHEMY_WARN_20: "1" | ||
HYPOTHESIS_PROFILE: "ci" | ||
|
||
permissions: | ||
# this allows extractions/setup-just to list releases for `just` at a higher | ||
# rate limit while restricting GITHUB_TOKEN permissions elsewhere | ||
contents: read | ||
|
||
jobs: | ||
check_setuptools_install: | ||
runs-on: ubuntu-latest | ||
|
@@ -38,20 +43,23 @@ jobs: | |
cache: pip | ||
cache-dependency-path: requirements-dev.txt | ||
|
||
- name: install poetry | ||
run: pip install 'poetry==1.8.4' | ||
- name: install uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
enable-cache: true | ||
|
||
- name: update apt-get | ||
run: sudo apt-get update -y -q | ||
|
||
- name: install system dependencies | ||
run: sudo apt-get install -y -q build-essential graphviz libgeos-dev freetds-dev unixodbc-dev | ||
|
||
- name: check consistency with pyproject.toml | ||
run: poetry check --lock | ||
- uses: extractions/setup-just@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: generate requirements-dev.txt | ||
run: poetry export --all-extras --with dev --with test --with docs --without-hashes --no-ansi > requirements-dev.txt | ||
run: just export-deps | ||
|
||
- name: check requirements-dev.txt | ||
run: git diff --exit-code requirements-dev.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,39 +46,39 @@ jobs: | |
- name: snowflake | ||
title: Snowflake | ||
extras: | ||
- snowflake | ||
- --extra snowflake | ||
- name: databricks | ||
title: Databricks | ||
extras: | ||
- databricks | ||
- --extra databricks | ||
include: | ||
- python-version: "3.10" | ||
backend: | ||
name: bigquery | ||
title: BigQuery | ||
extras: | ||
- bigquery | ||
- --extra bigquery | ||
- python-version: "3.12" | ||
backend: | ||
name: bigquery | ||
title: BigQuery | ||
extras: | ||
- bigquery | ||
- geospatial | ||
- --extra bigquery | ||
- --extra geospatial | ||
- python-version: "3.10" | ||
backend: | ||
name: snowflake | ||
title: Snowflake + Snowpark | ||
key: snowpark | ||
extras: | ||
- snowflake | ||
- --extra snowflake | ||
- python-version: "3.11" | ||
backend: | ||
name: snowflake | ||
title: Snowflake + Snowpark | ||
key: snowpark | ||
extras: | ||
- snowflake | ||
- --extra snowflake | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -110,15 +110,14 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install poetry | ||
run: pip install 'poetry==1.8.4' | ||
- name: install uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
enable-cache: true | ||
|
||
- name: install additional deps | ||
if: matrix.backend.key == 'snowpark' | ||
run: poetry add --lock snowflake-snowpark-python --python="==${{ steps.install_python.outputs.python-version }}" | ||
|
||
- name: install ibis | ||
run: poetry install --without dev --without docs --extras "${{ join(matrix.backend.extras, ' ') }} examples" | ||
run: uv add --no-sync --optional snowflake snowflake-snowpark-python | ||
|
||
- uses: extractions/setup-just@v2 | ||
env: | ||
|
@@ -169,7 +168,7 @@ jobs: | |
run: echo "SNOWFLAKE_SNOWPARK=1" >> "$GITHUB_ENV" | ||
|
||
- name: "run parallel tests: ${{ matrix.backend.name }}" | ||
run: just ci-check -m ${{ matrix.backend.name }} --numprocesses auto --dist=loadgroup | ||
run: just ci-check "${{ join(matrix.backend.extras, ' ') }} --extra examples" -m ${{ matrix.backend.name }} --numprocesses auto --dist=loadgroup | ||
|
||
- name: upload code coverage | ||
if: success() | ||
|
Oops, something went wrong.