From 4d20337fb9801cc930396a5075b22f3fa413db1f Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 25 Nov 2025 14:03:53 -0800 Subject: [PATCH] ci: update test configuration to vendorize dandiapi instance in tests --- .github/workflows/test-dandi-cli.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/test-dandi-cli.yml b/.github/workflows/test-dandi-cli.yml index 5e9e7fd6..f1fbd134 100644 --- a/.github/workflows/test-dandi-cli.yml +++ b/.github/workflows/test-dandi-cli.yml @@ -33,6 +33,12 @@ jobs: - release mode: - normal + vendored_dandiapi: + # Allow vendor information for the dandi-api instance to default to + # the default values specified in + # dandi/tests/data/dandiarchive-docker/docker-compose.yml of the dandi-cli + # repo. + - default include: - os: ubuntu-latest python: 3.9 @@ -42,6 +48,22 @@ jobs: python: 3.9 mode: dandi-devel version: release + - os: ubuntu-latest + python: 3.11 + mode: normal + version: master + vendored_dandiapi: ember-dandi + instance_name: EMBER-DANDI + instance_identifier: 'RRID:SCR_026700' + doi_prefix: '10.82754' + - os: ubuntu-latest + python: 3.11 + mode: normal + version: release + vendored_dandiapi: ember-dandi + instance_name: EMBER-DANDI + instance_identifier: 'RRID:SCR_026700' + doi_prefix: '10.82754' exclude: # Temporarily disabled due to h5py/hdf5 dependency issue # See @@ -99,5 +121,20 @@ jobs: . working-directory: dandischema + # Set only if matrix.instance_name is defined + - name: Set DANDI_TESTS_INSTANCE_NAME + if: ${{ matrix.instance_name }} + run: echo "DANDI_TESTS_INSTANCE_NAME=${{ matrix.instance_name }}" >> "$GITHUB_ENV" + + # Set only if matrix.instance_identifier is defined + - name: Set DANDI_TESTS_INSTANCE_IDENTIFIER + if: ${{ matrix.instance_identifier }} + run: echo "DANDI_TESTS_INSTANCE_IDENTIFIER=${{ matrix.instance_identifier }}" >> "$GITHUB_ENV" + + # Set only if matrix.doi_prefix is defined + - name: Set DANDI_TESTS_DOI_PREFIX + if: ${{ matrix.doi_prefix }} + run: echo "DANDI_TESTS_DOI_PREFIX=${{ matrix.doi_prefix }}" >> "$GITHUB_ENV" + - name: Run dandi-cli tests run: python -m pytest -s -v --pyargs dandi