diff --git a/.github/workflows/test-dandi-cli.yml b/.github/workflows/test-dandi-cli.yml index 4330bc15..b00ae811 100644 --- a/.github/workflows/test-dandi-cli.yml +++ b/.github/workflows/test-dandi-cli.yml @@ -32,6 +32,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.10" @@ -41,6 +47,22 @@ jobs: python: "3.10" 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' steps: - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v6 @@ -93,5 +115,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