Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and publish nightly

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'dask-contrib/dask-sql'

steps:
- uses: actions/checkout@v1
- name: Build and publish conda package
shell: bash -l {0}
env:
DASK_CONDA_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }}
run: |
# suffix for nightly package versions
export VERSION_SUFFIX=`date +%y%m%d`

mamba build continuous_integration/recipe \
--token $DASK_CONDA_TOKEN \
--label dev
35 changes: 33 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ jobs:
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
test_independent:

cluster:
name: "Test in a dask cluster"
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -153,7 +154,8 @@ jobs:
pytest tests
env:
DASK_SQL_TEST_SCHEDULER: tcp://127.0.0.1:8786
test_import:

import:
name: "Test importing with bare requirements"
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -188,3 +190,32 @@ jobs:
shell: bash -l {0}
run: |
python -c "import dask_sql; print('ok')"

conda:
name: "Test building the conda package"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
use-mamba: true
python-version: 3.8
- name: Install dependencies
shell: bash -l {0}
run: |
mamba install conda-build

which python
pip list
mamba list
- name: Build conda package
shell: bash -l {0}
run: |
# suffix for nightly package versions
export VERSION_SUFFIX=`date +%y%m%d`

mamba build continuous_integration/recipe --no-anaconda-upload
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: ^continuous_integration/recipe/
- id: check-added-large-files
51 changes: 51 additions & 0 deletions continuous_integration/recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% set name = "dask-sql" %}
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev') + environ.get('VERSION_SUFFIX', '') %}
{% set py_version=environ.get('CONDA_PY', 36) %}


package:
name: {{ name|lower }}
version: {{ version }}

source:
git_url: ../..

build:
noarch: python
number: {{ GIT_DESCRIBE_NUMBER }}
string: py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script: {{ PYTHON }} -m pip install . --no-deps -vv

requirements:
build:
- maven >=3.6.0
host:
- pip
- python >=3.6
- setuptools_scm
run:
- python >=3.6
- dask >=2.19.0,!=2021.3.0
- pandas >=1.0.0
- jpype1 >=1.0.2
- openjdk >=8
- fastapi >=0.61.1
- uvicorn >=0.11.3
- tzlocal >=2.1
- prompt_toolkit >=3.0.8
- pygments >=2.7.3
- nest-asyncio >=1.0.0

test:
imports:
- dask_sql
commands:
- pip check
requires:
- pip

about:
home: http://github.com/nils-braun/dask-sql/
summary: SQL Query Layer for dask
license: MIT
license_file: LICENSE.txt