diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8083b60..c4543b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,17 +16,17 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] name: Tests with Python ${{ matrix.python-version }} on Linux steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: path: main - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v6 with: - python-version: ${{ matrix.python-version }}-dev + python-version: ${{ matrix.python-version }} - name: Checkout Austin development branch uses: actions/checkout@master @@ -68,17 +68,17 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] name: Tests with Python ${{ matrix.python-version }} on MacOS steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: path: main - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v6 with: - python-version: ${{ matrix.python-version }}-dev + python-version: ${{ matrix.python-version }} - name: Checkout Austin development branch uses: actions/checkout@master @@ -113,17 +113,17 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] name: Tests with Python ${{ matrix.python-version }} on Windows steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: path: main - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v6 with: - python-version: ${{ matrix.python-version }}-dev + python-version: ${{ matrix.python-version }} - name: Checkout Austin development branch uses: actions/checkout@master diff --git a/pyproject.toml b/pyproject.toml index 6bd082b..ff28bf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ dependencies = [ tests = "pytest --cov=austin --cov-report=term-missing --cov-report=xml {args}" [[tool.hatch.envs.tests.matrix]] -python = ["3.10", "3.11", "3.12", "3.13", "3.14"] +python = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] [tool.hatch.envs.checks] python = "3.13" diff --git a/test/test_aio.py b/test/test_aio.py index 064ef66..193160c 100644 --- a/test/test_aio.py +++ b/test/test_aio.py @@ -23,6 +23,7 @@ import asyncio import sys +import sysconfig from pathlib import Path from unittest.mock import MagicMock @@ -59,14 +60,16 @@ async def on_metadata(self, metadata: AustinMetadata) -> None: async def on_terminate(self): data = self._meta assert "duration" in data - assert "errors" in data - assert "sampling" in data - assert "saturation" in data + if sysconfig.get_config_var("Py_GIL_DISABLED") is False: + assert "errors" in data + assert "sampling" in data + assert "saturation" in data self._terminate = True def assert_callbacks_called(self): assert self._metadata - assert self._sample_received + if sysconfig.get_config_var("Py_GIL_DISABLED") is False: + assert self._sample_received assert self._terminate @@ -109,7 +112,7 @@ async def sample_callback(data): "100", "python", "-c", - "[i for i in range(10000000)]", + "[i for i in range(100000000)]", ] ) await asyncio.wait_for(austin.wait(), 30)