From c86a4b6106f7885105b5e668bdac4a29517796d1 Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Sat, 25 Jul 2026 05:15:48 +0200 Subject: [PATCH 1/2] Make e2e path sanity check worktree-friendly `test_paths_exist` asserted that the repo root directory is named "ridgeplot", which fails in git worktrees and renamed clones. Check for a repo-root marker file (pyproject.toml) instead. --- tests/e2e/test_examples.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/test_examples.py b/tests/e2e/test_examples.py index 1b41e6ee..5c428344 100644 --- a/tests/e2e/test_examples.py +++ b/tests/e2e/test_examples.py @@ -13,7 +13,10 @@ def test_paths_exist() -> None: - assert PATH_ROOT.name == "ridgeplot" + # Sanity check that PATH_ROOT points at the repo root, without + # depending on the name of the checkout directory (which differs + # in git worktrees and renamed clones) + assert (PATH_ROOT / "pyproject.toml").is_file() assert PATH_ARTIFACTS.is_dir() assert PATH_CHARTS.is_dir() From c451daa369caca607127db50d64ddd0d4e85be0f Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Sat, 25 Jul 2026 05:39:21 +0200 Subject: [PATCH 2/2] Add changelog entry --- docs/reference/changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index e7bf832f..39872970 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -7,6 +7,7 @@ Unreleased changes ### CI/CD +- Make the e2e path sanity check independent of the checkout directory's name, so tests can run from git worktrees ({gh-pr}`391`) - Bump actions/download-artifact from 7 to 8 ({gh-pr}`368`) - Bump actions/upload-artifact from 6 to 7 ({gh-pr}`369`) - Bump sigstore/gh-action-sigstore-python from 3.2.0 to 3.3.0 ({gh-pr}`370`)