forked from microsoft/PlanetaryComputerExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 698 Bytes
/
Copy pathdiff.yml
File metadata and controls
34 lines (31 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: git diff with nbdime
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
diffs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbdime ipython_genutils
- name: Configure nbdime
run: |
/opt/hostedtoolcache/Python/3.9.13/x64/bin/nbdime config-git --enable --global
- name: git diff
run: |
git diff HEAD^ HEAD