diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index 807a9c98..7c103af0 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -8,6 +8,7 @@ Unreleased changes ### CI/CD - Review the coverage configuration in light of `covdefaults`, adopting its `assert_never` exclusion and `skip_covered` report setting, and raising all package coverage gates to 100% ({gh-pr}`390`) +- 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`) 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()