Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GitHub Actions #174

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
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]
jacobtomlinson marked this conversation as resolved.
Show resolved Hide resolved
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