Skip to content

Fix versoin --> version typo (#239) #131

Fix versoin --> version typo (#239)

Fix versoin --> version typo (#239) #131

Workflow file for this run

name: CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache if binder/environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('binder/environment.yml') }}
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: binder/environment.yml
activate-environment: dask-examples
auto-activate-base: false
use-only-tar-bz2: true
- name: Install testing and docs dependencies
run: |
mamba install nbconvert nbformat jupyter_client ipykernel nbmake \
pytest nbsphinx "dask-sphinx-theme>=3.0.0" sphinx
# for debugging purposes
mamba env export | grep -E -v '^prefix:.*$'
- name: Execute Notebooks
run: |
pytest \
-vv \
--nbmake \
--overwrite \
--ignore machine-learning/torch-prediction.ipynb \
--ignore applications/json-data-on-the-web.ipynb
- name: Build
run: sphinx-build -M html . _build -v
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request'}}
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _build/html
CLEAN: true