diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94afa05f..d60a3e3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - PYTHON_VERSION: ["3.10", "3.11", "3.13"] + PYTHON_VERSION: ["3.10", "3.13", "3.14"] env: PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} steps: @@ -47,7 +47,6 @@ jobs: condarc: | channels: - conda-forge - - defaults create-args: >- python=${{ env.PYTHON_VERSION }} environment-name: prod @@ -63,7 +62,7 @@ jobs: python -m pip install . -vv --no-deps cp pywwa_settings.json-example pywwa_settings.json # This is a bit brittle, but loads some data - python util/ugcs_update.py --filename=fz08mr23 --date=2023-03-08 + python util/ugcs_update.py --filename=fz18mr25 --date=2025-03-18 python util/merge_hvtec_nwsli.py hvtec.list.20251006.csv python util/copy_iem_network.py MN_ASOS python util/copy_iem_network.py NY_COOP @@ -117,7 +116,7 @@ jobs: pywwa-spammer --help - name: Upload coverage to Codecov - if: ${{ env.PYTHON_VERSION == '3.13' }} + if: ${{ env.PYTHON_VERSION == '3.14' }} uses: codecov/codecov-action@v5 with: file: coverage.xml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b09657c..7e0d2fb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: types: [python] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.9" + rev: "v0.14.10" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tests/workflows/test_alaska_marine.py b/tests/workflows/test_alaska_marine.py index a0af977f..a73dde22 100644 --- a/tests/workflows/test_alaska_marine.py +++ b/tests/workflows/test_alaska_marine.py @@ -1,7 +1,9 @@ """Test alaska_marine workflow.""" import pytest +from pyiem.util import utc +import pywwa from pywwa.testing import get_example_file from pywwa.workflows import alaska_marine @@ -9,6 +11,7 @@ @pytest.mark.parametrize("database", ["postgis"]) def test_workflow(cursor): """Test failure in the wild.""" + pywwa.CTX["utcnow"] = utc(2025, 1, 1, 12) alaska_marine.process_data(cursor, get_example_file("CWFAER_0.txt")) alaska_marine.process_data(cursor, get_example_file("CWFAER_1.txt")) alaska_marine.process_data(cursor, get_example_file("CWFAER_2.txt"))