forked from NeurodataWithoutBorders/pynwb
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.53 KB
/
run_inspector_tests.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
name: Run NWB Inspector tests
on:
pull_request:
schedule:
- cron: '0 5 * * *' # once per day at midnight ET
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Cancel non-latest runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0 # tags are required for versioneer to determine the version
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Clone NWB Inspector and install dev branch of PyNWB
run: |
python -m pip list
git clone https://github.com/NeurodataWithoutBorders/nwbinspector.git
cd nwbinspector
python -m pip install pytest
python -m pip install ".[dandi]" # this might install a pinned version of pynwb instead of the current one
# Download testing data and set config path
dandi download "https://gui-staging.dandiarchive.org/#/dandiset/204919"
cd ..
python -m pip uninstall -y pynwb # uninstall the pinned version of pynwb
python -m pip install . # reinstall current branch of pynwb
python -m pip list
- name: Run NWB Inspector tests on NWB Inspector dev branch
run: |
cd nwbinspector
pytest