-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (30 loc) · 1.03 KB
/
dandi-dev.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
name: Test against DANDI dev branch - no network
on: workflow_call
env:
DANDI_TESTS_NONETWORK: "1"
jobs:
build-and-test:
name: Testing against current DANDI release and dev branch
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout local branch of source repository
uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Test local branch of NWB Inspector against DANDI dev branch
run: |
pip install virtualenv
virtualenv --system-site-packages --python=python3 venvs/dandi_dev_tests
source venvs/dandi_dev_tests/bin/activate
pip install -e .[dandi]
cd ..
git clone https://github.com/dandi/dandi-cli
cd dandi-cli
pip install -e .[test]
pip install hdmf==3.14.3 # temporary: https://github.com/dandi/dandi-cli/issues/1494
pytest -rsx