diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7ef5ea6..eb84eab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,8 +17,9 @@ jobs: - { python: "3.11", os: "ubuntu-latest" } - { python: "3.12", os: "ubuntu-latest" } - { python: "3.13", os: "ubuntu-latest" } - - { python: "3.13", os: "windows-latest" } - - { python: "3.13", os: "macos-latest" } + - { python: "3.14", os: "ubuntu-latest" } + - { python: "3.14", os: "windows-latest" } + - { python: "3.14", os: "macos-latest" } steps: - name: Check out the repository uses: actions/checkout@v6 diff --git a/tests/test_main.py b/tests/test_main.py index 0b0b1bc..d10f675 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -3,6 +3,7 @@ import unittest.mock import pytest +import sys from click.testing import CliRunner from stac_api_validator import __main__ @@ -29,7 +30,9 @@ def test_retrieve_called_with_auth_headers( expected_headers = { "User-Agent": f"python-requests/{requests_version}", - "Accept-Encoding": "gzip, deflate", + "Accept-Encoding": "gzip, deflate, zstd" + if sys.version_info >= (3, 14) + else "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "Authorization": "api-key fake-api-key-value", diff --git a/tests/test_validations.py b/tests/test_validations.py index 96846a4..c620108 100644 --- a/tests/test_validations.py +++ b/tests/test_validations.py @@ -13,6 +13,7 @@ import pystac import pytest import requests +import sys from stac_api_validator import validations @@ -55,7 +56,9 @@ def stac_check_config() -> Generator[str, None, None]: def expected_headers(requests_version: str) -> Generator[Dict[str, str], None, None]: yield { "User-Agent": f"python-requests/{requests_version}", - "Accept-Encoding": "gzip, deflate", + "Accept-Encoding": "gzip, deflate, zstd" + if sys.version_info >= (3, 14) + else "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "Authorization": "api-key fake-api-key-value",