Skip to content

Commit

Permalink
Create binder-build.yml
Browse files Browse the repository at this point in the history
Trial to create binder build CI, this only is triggered when the environment.yml is changed and need to be checked before merging into main
  • Loading branch information
EtienneKras committed Oct 31, 2024
1 parent c416885 commit 0162531
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/binder-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0162531

Please sign in to comment.