Skip to content

Commit cabfa3d

Browse files
authored
Merge pull request #360 from dandi/test-against-vendored-dandiapi
ci: update test configuration to vendorize dandiapi instance in tests
2 parents 58ccbca + 9ec7784 commit cabfa3d

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
@@ -32,6 +32,12 @@ jobs:
3232
- release
3333
mode:
3434
- normal
35+
vendored_dandiapi:
36+
# Allow vendor information for the dandi-api instance to default to
37+
# the default values specified in
38+
# dandi/tests/data/dandiarchive-docker/docker-compose.yml of the dandi-cli
39+
# repo.
40+
- default
3541
include:
3642
- os: ubuntu-latest
3743
python: "3.10"
@@ -41,6 +47,22 @@ jobs:
4147
python: "3.10"
4248
mode: dandi-devel
4349
version: release
50+
- os: ubuntu-latest
51+
python: "3.11"
52+
mode: normal
53+
version: master
54+
vendored_dandiapi: ember-dandi
55+
instance_name: EMBER-DANDI
56+
instance_identifier: 'RRID:SCR_026700'
57+
doi_prefix: '10.82754'
58+
- os: ubuntu-latest
59+
python: "3.11"
60+
mode: normal
61+
version: release
62+
vendored_dandiapi: ember-dandi
63+
instance_name: EMBER-DANDI
64+
instance_identifier: 'RRID:SCR_026700'
65+
doi_prefix: '10.82754'
4466
steps:
4567
- name: Set up Python ${{ matrix.python }}
4668
uses: actions/setup-python@v6
@@ -93,5 +115,20 @@ jobs:
93115
.
94116
working-directory: dandischema
95117

118+
# Set only if matrix.instance_name is defined
119+
- name: Set DANDI_TESTS_INSTANCE_NAME
120+
if: ${{ matrix.instance_name }}
121+
run: echo "DANDI_TESTS_INSTANCE_NAME=${{ matrix.instance_name }}" >> "$GITHUB_ENV"
122+
123+
# Set only if matrix.instance_identifier is defined
124+
- name: Set DANDI_TESTS_INSTANCE_IDENTIFIER
125+
if: ${{ matrix.instance_identifier }}
126+
run: echo "DANDI_TESTS_INSTANCE_IDENTIFIER=${{ matrix.instance_identifier }}" >> "$GITHUB_ENV"
127+
128+
# Set only if matrix.doi_prefix is defined
129+
- name: Set DANDI_TESTS_DOI_PREFIX
130+
if: ${{ matrix.doi_prefix }}
131+
run: echo "DANDI_TESTS_DOI_PREFIX=${{ matrix.doi_prefix }}" >> "$GITHUB_ENV"
132+
96133
- name: Run dandi-cli tests
97134
run: python -m pytest -s -v --pyargs dandi

0 commit comments

Comments
 (0)