35 строки
698 B
YAML
35 строки
698 B
YAML
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
|