-
Notifications
You must be signed in to change notification settings - Fork 94
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
1 parent
c1ba28c
commit 03d9b46
Showing
5 changed files
with
93 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Dask Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test_dask_lower_bound: | ||
name: Dask 2023.2.0 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: make devenv | ||
- name: Setup Dask | ||
run: pip install pyarrow=11.0.0 pandas==2.0.2 dask[dataframe,distributed]==2023.5.0 | ||
- name: Test | ||
run: make testdask | ||
|
||
test_dask_latest: | ||
name: Dask Latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: make devenv | ||
- name: Setup Dask | ||
run: pip install -U dask[dataframe,distributed] pyarrow pandas | ||
- name: Test | ||
run: make testdask |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
from typing import Any, Dict | ||
import pandas as pd | ||
|
||
import dask | ||
import pandas as pd | ||
import pyarrow as pa | ||
from packaging import version | ||
|
||
FUGUE_DASK_CONF_DEFAULT_PARTITIONS = "fugue.dask.default.partitions" | ||
FUGUE_DASK_DEFAULT_CONF: Dict[str, Any] = {FUGUE_DASK_CONF_DEFAULT_PARTITIONS: -1} | ||
FUGUE_DASK_USE_ARROW = hasattr(pd, "ArrowDtype") and dask.__version__ >= "2023.7.1" | ||
FUGUE_DASK_USE_ARROW = ( | ||
hasattr(pd, "ArrowDtype") | ||
and version.parse(dask.__version__) >= version.parse("2023.2") | ||
and version.parse(pa.__version__) >= version.parse("7") | ||
and version.parse(pd.__version__) >= version.parse("2") | ||
) |
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