-
Notifications
You must be signed in to change notification settings - Fork 175
50 lines (40 loc) · 970 Bytes
/
check.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Check
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
ruff:
name: Ruff
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ./.github/actions/setup
- run: ruff check
- run: ruff format --check
nbconvert:
name: NbConvert
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ./.github/actions/setup
- name: Check notebooks are cleaned
run: |
jupyter nbconvert --clear-output --inplace 11_notebooks/*.ipynb
git diff --quiet 11_notebooks/*.ipynb && git diff --cached --quiet 11_notebooks/*.ipynb || exit 1
pytest:
name: Pytest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: ./.github/actions/setup
- name: Run
run: pytest -v .