Skip to content

Add as_dask_array() to load the whole file as a Dask Array #20

Add as_dask_array() to load the whole file as a Dask Array

Add as_dask_array() to load the whole file as a Dask Array #20

name: Python package and documentation
on:
push:
pull_request:
branches:
- '**:**' # run only for PR from forked repos
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt', './requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
with:
path: ~/.local
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt', './requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Test
run: make test
- name: Build wheel
run: make
- name: sphinx
working-directory: ./doc
env:
PYTHONPATH: ..
run: make html
- name: GitHub Pages
if: github.ref == 'refs/heads/master'
uses: crazy-max/[email protected]
with:
build_dir: doc/_build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}