Skip to content
Merged
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
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.11', '3.12', '3.13', '3.14']
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -79,16 +79,10 @@ jobs:
run: just test-cov

- name: Run tests on Windows
if: matrix.os == 'windows-latest' && matrix.python-version != '3.14'
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: just test-cov --snapshot-warn-unused

# pywin32 has no wheels for Python 3.14 yet, so skip notebook tests
- name: Run tests without notebook tests (Windows + Python 3.14)
if: matrix.os == 'windows-latest' && matrix.python-version == '3.14'
shell: bash -l {0}
run: uv run --group test pytest --cov=src --cov=tests --cov-report=xml -n auto --snapshot-warn-unused

- name: Upload test coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and

## Unreleased

- [#1023](https://github.com/pytask-dev/pytask/pull/1023) adds Python 3.15 tests on
Linux, macOS, and Windows.
- [#1026](https://github.com/pytask-dev/pytask/pull/1026) preserves definition-local
bindings for generated tasks with postponed annotations and releases temporary
snapshots after collection or generator failures. Internal task registration no
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ plugin-list = ["httpx>=0.27.0", "tabulate[widechars]>=0.9.0"]
test = [
"cloudpickle>=3.0.0",
"deepdiff>=7.0.0",
# nbmake requires pywin32 on Windows, which has no wheels for Python 3.14 yet
"nbmake>=1.5.5; platform_system != 'Windows' or python_version < '3.14'",
"nbmake>=1.5.5",
"pygments>=2.18.0",
"pexpect>=4.9.0",
"pytest>=8.4.0",
Expand Down
7 changes: 4 additions & 3 deletions tests/test_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,15 +488,16 @@ def task_1():
)

child.expect(["PDB", "set_trace", r"\(IO-capturing", "turned", r"off\)"])
child.expect(r"\n\(Pdb")
child.expect(r"\(Pdb\)")
child.sendline("debug foo()")
child.expect("ENTERING RECURSIVE DEBUGGER")
child.expect(r"\n\(\(Pdb")
child.expect(r"\(Pdb\)")
child.sendline("c")
child.expect("LEAVING RECURSIVE DEBUGGER")
assert b"PDB continue" not in child.before # type: ignore[operator]
# No extra newline.
assert child.before.endswith(b"c\r\nprint_from_foo\r\n") # type: ignore[union-attr]
output = _escape_ansi(child.before.decode()).replace("\n\r", "\r\n") # type: ignore[union-attr]
assert output.endswith("c\r\nprint_from_foo\r\n")

# set_debug should not raise outcomes. Exit, if used recursively.
child.sendline("debug 42")
Expand Down
Loading
Loading