Skip to content

Fix bug when new year has no data #106

Fix bug when new year has no data

Fix bug when new year has no data #106

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
# Use "uv" for python and dependency management
- uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
uv run flake8 *.py --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
uv run flake8 *.py --count --exit-zero --max-complexity=28 --max-line-length=127 --statistics
- name: Test
run: |
uv run --frozen sea-surface-temps.py --mode map --dataset sst --days-ago 4
uv run --frozen sea-surface-temps.py --mode map --dataset anom --days-ago 4