Skip to content

Commit 997761c

Browse files
authored
ci: test against vendored dandiapi other than default (#1771)
Configuer CI to test against a vendor specific DANDI API other than the default instance of DANDI API
1 parent a1043bf commit 997761c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,22 @@ jobs:
4141
- '3.13'
4242
mode:
4343
- normal
44+
vendored_dandiapi:
45+
# Allow vendor information for the dandi-api instance to default to
46+
# the default values specified in
47+
# dandi/tests/data/dandiarchive-docker/docker-compose.yml
48+
- default
4449
include:
4550
- os: ubuntu-latest
4651
python: '3.10'
4752
mode: dandi-api
53+
- os: ubuntu-latest
54+
python: '3.10'
55+
mode: dandi-api
56+
vendored_dandiapi: ember-dandi
57+
instance_name: EMBER-DANDI
58+
instance_identifier: 'RRID:SCR_026700'
59+
doi_prefix: '10.82754'
4860
- os: ubuntu-latest
4961
python: 3.13
5062
mode: obolibrary-only
@@ -76,6 +88,21 @@ jobs:
7688
python -m pip install --upgrade pip wheel
7789
pip install ".[extras,test]"
7890
91+
# Set only if matrix.instance_name is defined
92+
- name: Set DANDI_TESTS_INSTANCE_NAME
93+
if: ${{ matrix.instance_name }}
94+
run: echo "DANDI_TESTS_INSTANCE_NAME=${{ matrix.instance_name }}" >> "$GITHUB_ENV"
95+
96+
# Set only if matrix.instance_identifier is defined
97+
- name: Set DANDI_TESTS_INSTANCE_IDENTIFIER
98+
if: ${{ matrix.instance_identifier }}
99+
run: echo "DANDI_TESTS_INSTANCE_IDENTIFIER=${{ matrix.instance_identifier }}" >> "$GITHUB_ENV"
100+
101+
# Set only if matrix.doi_prefix is defined
102+
- name: Set DANDI_TESTS_DOI_PREFIX
103+
if: ${{ matrix.doi_prefix }}
104+
run: echo "DANDI_TESTS_DOI_PREFIX=${{ matrix.doi_prefix }}" >> "$GITHUB_ENV"
105+
79106
- name: Install dev versions of select dependencies
80107
if: matrix.mode == 'dev-deps'
81108
run: |

0 commit comments

Comments
 (0)