Skip to content

Commit 4d6e568

Browse files
committed
ci: Add DATADEPS_ALWAYS_ACCEPT for remote dataset downloads
Fixes #61 DataDeps.jl requires the DATADEPS_ALWAYS_ACCEPT environment variable to be set in CI environments to automatically accept data dependency downloads without user interaction. Without this, downloads of remote datasets from Figshare fail with HTTP 403 errors on macOS runners. This is a standard requirement for using DataDeps.jl in CI, as documented in the DataDeps.jl documentation.
1 parent b6b2913 commit 4d6e568

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
test:
1212
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
14+
env:
15+
DATADEPS_ALWAYS_ACCEPT: true
1416
strategy:
1517
fail-fast: false
1618
matrix:
@@ -35,6 +37,13 @@ jobs:
3537
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('docs/CondaPkg.toml') }}
3638
restore-keys: |
3739
${{ runner.os }}-${{ env.cache-name }}-
40+
- name: Cache DataDeps
41+
uses: actions/cache@v4
42+
with:
43+
path: ~/.julia/datadeps
44+
key: ${{ runner.os }}-datadeps-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-datadeps-
3847
- uses: julia-actions/julia-buildpkg@latest
3948
- uses: julia-actions/julia-runtest@latest
4049
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)