Skip to content

Commit 2a9b94a

Browse files
authored
binder.yml
1 parent 73010b3 commit 2a9b94a

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/binder.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Binder
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
binder:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: Cache Binder environment
16+
uses: actions/cache@v3
17+
with:
18+
path: ~/.cache/pip
19+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
20+
restore-keys: |
21+
${{ runner.os }}-pip-
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.11'
26+
- name: Install dependencies
27+
run: |
28+
pip install -r requirements.txt
29+
- name: Run Binder build
30+
run: |
31+
echo "Binder environment is ready for use."

0 commit comments

Comments
 (0)