Skip to content

Create binder-build.yml #1

Create binder-build.yml

Create binder-build.yml #1

Workflow file for this run

name: Build Binder Image
on:
push:
paths:
- environment.yml
pull_request:
paths:
- environment.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Binder image
run: |
pip install jupyter-repo2docker
jupyter-repo2docker --no-run .
- name: Check Binder build status
if: failure()
run: exit 1