Skip to content

Commit b95e6df

Browse files
committed
ci: update test configuration to vendorize dandiapi instance in tests
1 parent 0af35b5 commit b95e6df

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test-dandi-cli.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
- release
3434
mode:
3535
- normal
36+
vendored_dandiapi:
37+
# Allow vendor information for the dandi-api instance to default to
38+
# the default values specified in
39+
# dandi/tests/data/dandiarchive-docker/docker-compose.yml of the dandi-cli
40+
# repo.
41+
- default
3642
include:
3743
- os: ubuntu-latest
3844
python: 3.9
@@ -42,6 +48,22 @@ jobs:
4248
python: 3.9
4349
mode: dandi-devel
4450
version: release
51+
- os: ubuntu-latest
52+
python: 3.11
53+
mode: normal
54+
version: master
55+
vendored_dandiapi: ember-dandi
56+
instance_name: EMBER-DANDI
57+
instance_identifier: 'RRID:SCR_026700'
58+
doi_prefix: '10.82754'
59+
- os: ubuntu-latest
60+
python: 3.11
61+
mode: normal
62+
version: release
63+
vendored_dandiapi: ember-dandi
64+
instance_name: EMBER-DANDI
65+
instance_identifier: 'RRID:SCR_026700'
66+
doi_prefix: '10.82754'
4567
exclude:
4668
# Temporarily disabled due to h5py/hdf5 dependency issue
4769
# See <https://github.com/dandi/dandi-cli/pull/315>
@@ -99,5 +121,20 @@ jobs:
99121
.
100122
working-directory: dandischema
101123

124+
# Set only if matrix.instance_name is defined
125+
- name: Set DANDI_TESTS_INSTANCE_NAME
126+
if: ${{ matrix.instance_name }}
127+
run: echo "DANDI_TESTS_INSTANCE_NAME=${{ matrix.instance_name }}" >> "$GITHUB_ENV"
128+
129+
# Set only if matrix.instance_identifier is defined
130+
- name: Set DANDI_TESTS_INSTANCE_IDENTIFIER
131+
if: ${{ matrix.instance_identifier }}
132+
run: echo "DANDI_TESTS_INSTANCE_IDENTIFIER=${{ matrix.instance_identifier }}" >> "$GITHUB_ENV"
133+
134+
# Set only if matrix.doi_prefix is defined
135+
- name: Set DANDI_TESTS_DOI_PREFIX
136+
if: ${{ matrix.doi_prefix }}
137+
run: echo "DANDI_TESTS_DOI_PREFIX=${{ matrix.doi_prefix }}" >> "$GITHUB_ENV"
138+
102139
- name: Run dandi-cli tests
103140
run: python -m pytest -s -v --pyargs dandi

0 commit comments

Comments
 (0)