Skip to content

Commit

Permalink
Migrate to GitHub Actions (#174)
Browse files Browse the repository at this point in the history
* Migrate to GitHub Actions

* Build on PRs but not deploy

* Remove graphviz install and switch deploy auth to GITHUB_TOKEN
  • Loading branch information
jacobtomlinson authored Nov 5, 2020
1 parent dc21d2b commit 9be2b11
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 47 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-build.yaml
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
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: dask-examples
channels:
- conda-forge
dependencies:
Expand Down Expand Up @@ -27,4 +28,4 @@ dependencies:
- py-xgboost
- dask-xgboost
- pip:
- mimesis
- mimesis

0 comments on commit 9be2b11

Please sign in to comment.