-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to GitHub Actions * Build on PRs but not deploy * Remove graphviz install and switch deploy auth to GITHUB_TOKEN
- Loading branch information
1 parent
dc21d2b
commit 9be2b11
Showing
3 changed files
with
39 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda Environment | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
miniconda-version: "latest" | ||
python-version: "3.7" | ||
environment-file: binder/environment.yml | ||
activate-environment: dask-examples | ||
auto-activate-base: false | ||
|
||
- name: Install testing and docs dependencies | ||
shell: bash -l {0} | ||
run: | | ||
conda install -q pathlib nbconvert nbformat jupyter_client ipykernel | ||
pip install nbsphinx dask-sphinx-theme sphinx | ||
- name: Build | ||
shell: bash -l {0} | ||
run: sphinx-build -M html . _build -v | ||
|
||
- name: Deploy | ||
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request'}} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: _build/html | ||
CLEAN: true |
This file was deleted.
Oops, something went wrong.
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