Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 8 additions & 5 deletions test/test_aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import asyncio
import sys
import sysconfig
from pathlib import Path
from unittest.mock import MagicMock

Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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)
Expand Down
Loading