Skip to content

ci: Fix MacOS-specific failure to download remote datasets #822

ci: Fix MacOS-specific failure to download remote datasets

ci: Fix MacOS-specific failure to download remote datasets #822

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
DATADEPS_ALWAYS_ACCEPT: true
strategy:
fail-fast: false
matrix:
julia-version: ["min", "lts", "1", "pre"]
os: [ubuntu-latest]
include:
- julia-version: "1"
os: macOS-latest
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v2
- name: Cache CondaPkg
id: cache-condaPkg
uses: actions/cache@v4
env:
cache-name: cache-condapkg
with:
path: .CondaPkg
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('docs/CondaPkg.toml') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache DataDeps
uses: actions/cache@v4
with:
path: ~/.julia/datadeps
key: ${{ runner.os }}-datadeps-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-datadeps-
- name: Diagnostic - Check IP and test Figshare access
run: |
echo "=== Runner IP Address ==="
curl -s https://api.ipify.org
echo ""
echo ""
echo "=== Testing Figshare download access ==="
echo "Attempting to download regression1d dataset from Figshare..."
curl -v -L --max-time 30 "https://ndownloader.figshare.com/files/16254899" -o /tmp/test_download.nc 2>&1 | head -100
echo ""
if [ -f /tmp/test_download.nc ]; then
echo "Download successful! File size: $(wc -c < /tmp/test_download.nc) bytes"
rm /tmp/test_download.nc
else
echo "Download failed!"
fi
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
if: ${{ matrix.julia-version == '1' && matrix.os =='ubuntu-latest' }}