diff --git a/.github/workflows/binder-build.yml b/.github/workflows/binder-build.yml new file mode 100644 index 0000000..a57fd64 --- /dev/null +++ b/.github/workflows/binder-build.yml @@ -0,0 +1,36 @@ +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 \ No newline at end of file