-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (43 loc) Β· 1.27 KB
/
test.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
51
52
53
54
55
56
name: test
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
workflow_dispatch:
jobs:
test:
runs-on:
group: LargerInstance
env:
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
TESTING: True
steps:
- uses: actions/checkout@v3
- name: Upgrading pip
run: pip install --upgrade pip
- name: print environment
run: pip freeze
- name: Install cython
run: pip install cython numpy
- name: Installing package
run: pip install -e .
- name: Installing requirements
run: pip install -r ./requirements.txt
- name: Installing build dependencies
run: |
pip install markupsafe==2.0.1
pip install jupyter
pip install -U jupyter-book
pip install nbmake
pip install pytest-xdist
- name: Printing environment
run: pip freeze
- name: Getting changed files
id: changed_files
uses: Ana06/[email protected]
with:
filter: "*.ipynb"
- name: Testing notebooks
if: ${{ steps.changed_files.outputs.added_modified != '' }}
run: pytest --nbmake --nbmake-timeout=5000 -n=auto ${{ steps.changed_files.outputs.added_modified }}