Skip to content

Commit

Permalink
Fix CI image generate workflow to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
garyo committed Sep 10, 2024
1 parent 2e165ac commit f69191e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/make-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f69191e

Please sign in to comment.