diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 07f01b5..e45a029 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -20,7 +20,10 @@ jobs: - name: Set up system run: | sudo apt-get update -qq - sudo apt-get install git-annex + sudo wget -O- http://neuro.debian.net/lists/jammy.de-fzj.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list + sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9 + sudo apt-get update -qq + sudo apt-get install git-annex-standalone - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: diff --git a/src/datalad_cds/download_cds.py b/src/datalad_cds/download_cds.py index 9335b0f..93d1587 100644 --- a/src/datalad_cds/download_cds.py +++ b/src/datalad_cds/download_cds.py @@ -89,6 +89,7 @@ def __call__( options = [] if lazy: options.append("--fast") + options.append("--verifiable") ds.repo.add_url_to_file(pathobj, url, options=options) if save: msg = ( diff --git a/tests/test_download_cds.py b/tests/test_download_cds.py index 035d20b..1910554 100644 --- a/tests/test_download_cds.py +++ b/tests/test_download_cds.py @@ -48,5 +48,5 @@ def test_download_cds_lazy( ) assert ( os.readlink(dataset.pathobj / "download.grib") - == ".git/annex/objects/5J/pV/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972" + == ".git/annex/objects/69/qm/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972" )