Skip to content

Commit 21f79c9

Browse files
authored
chore: run type tests only in Python>=3.13 (#60)
1 parent 476d76d commit 21f79c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest]
14-
python-version: ['3.12']
14+
python-version: ['3.12', '3.13']
1515
runs-on: ${{ matrix.os }}
1616

1717
steps:

tests/test_types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import sys
12
from contextlib import chdir
23
from subprocess import run
34

5+
import pytest
6+
47
# Import the full module so we can patch constants
58
from pywrangler.types import wrangler_types
69

@@ -42,7 +45,9 @@ async def fetch(self, request: Request) -> Response:
4245
"""
4346

4447

48+
@pytest.mark.skipif(sys.version_info < (3, 13), reason="We create Python 3.13+ syntax")
4549
def test_types(tmp_path):
50+
"""Test that types are correctly revealed in a worker."""
4651
config_path = tmp_path / "wrangler.toml"
4752
pyproject_path = tmp_path / "pyproject.toml"
4853
worker_dir = tmp_path / "src/worker"

0 commit comments

Comments
 (0)