diff --git a/.github/workflows/make-images.yml b/.github/workflows/make-images.yml index 85806c1..d800679 100644 --- a/.github/workflows/make-images.yml +++ b/.github/workflows/make-images.yml @@ -13,19 +13,19 @@ jobs: steps: - uses: actions/checkout@v2 + # Use "uv" for python and dependency management + - uses: astral-sh/setup-uv@v2 + with: + enable-cache: true - name: Install dependencies - run: | - python --version - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - + run: uv sync - name: Generate graphs run: | - python prune-cache.py --inplace --days 90 # Re-fetch most recent 90 days, in case of reanalysis - python sea-surface-temps.py --mode graph --dataset sst --out sst-all.png - python sea-surface-temps.py --mode graph --dataset anom --out sst-all-anom.png - python sea-surface-temps.py --mode graph --dataset sst --out sst-all.svg - python sea-surface-temps.py --mode graph --dataset anom --out sst-all-anom.svg + uv run prune-cache.py --inplace --days 90 # Re-fetch most recent 90 days, in case of reanalysis + uv run sea-surface-temps.py --mode graph --dataset sst --out sst-all.png + uv run sea-surface-temps.py --mode graph --dataset anom --out sst-all-anom.png + uv run sea-surface-temps.py --mode graph --dataset sst --out sst-all.svg + uv run sea-surface-temps.py --mode graph --dataset anom --out sst-all-anom.svg # Maps: OK if these fail; we're looking for yesterday, might not be there yet. - name: Generate maps