From f92fda72854cf26d313bfed5dc17d5a3803da8ac Mon Sep 17 00:00:00 2001 From: Isaac To Date: Mon, 15 Dec 2025 10:36:35 -0800 Subject: [PATCH] ci: test against vendored dandiapi other than default Configuer CI to test against a vendor specific DANDI API other than the default instance of DANDI API --- .github/workflows/run-tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2bceb9c1b..5d48df387 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -41,10 +41,22 @@ jobs: - '3.13' 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 + - default include: - os: ubuntu-latest python: '3.10' mode: dandi-api + - os: ubuntu-latest + python: '3.10' + mode: dandi-api + vendored_dandiapi: ember-dandi + instance_name: EMBER-DANDI + instance_identifier: 'RRID:SCR_026700' + doi_prefix: '10.82754' - os: ubuntu-latest python: 3.13 mode: obolibrary-only @@ -76,6 +88,21 @@ jobs: python -m pip install --upgrade pip wheel pip install ".[extras,test]" + # 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: Install dev versions of select dependencies if: matrix.mode == 'dev-deps' run: |