diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 579991d..3e41ab5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,8 @@ jobs: enable-cache: true - name: Install just uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 + with: + just-version: "1.43.1" - name: Run type checking run: just typing @@ -61,6 +63,8 @@ jobs: enable-cache: true - name: Install just uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 + with: + just-version: "1.43.1" - name: Run tests run: just test diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 344c431..78bad1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.10 + rev: v0.15.12 hooks: - id: ruff-check - id: ruff-format diff --git a/tests/test_execute.py b/tests/test_execute.py index 6df9ef5..f8b919e 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -1,5 +1,7 @@ from __future__ import annotations +import os +import sys import textwrap from time import time @@ -262,7 +264,20 @@ def test_task_without_path_that_return(runner, tmp_path, parallel_backend): ) -@pytest.mark.parametrize("flag", ["--pdb", "--trace", "--dry-run"]) +@pytest.mark.parametrize( + "flag", + [ + "--pdb", + pytest.param( + "--trace", + marks=pytest.mark.xfail( + sys.version_info[:2] == (3, 14) and os.environ.get("CI") == "true", + reason="Python 3.14 exits the CI debugger session with a failure.", + ), + ), + "--dry-run", + ], +) @pytest.mark.parametrize("parallel_backend", _IMPLEMENTED_BACKENDS) def test_parallel_execution_is_deactivated(runner, tmp_path, flag, parallel_backend): tmp_path.joinpath("task_example.py").write_text("def task_example(): pass")