Skip to content

CI: apply Linux-only sitecustomize guard to linting.yaml, drop dead comment - #130

Merged
woutervh merged 7 commits into
mainfrom
ci/windows-sitecustomize-guard-cleanup
Aug 22, 2026
Merged

CI: apply Linux-only sitecustomize guard to linting.yaml, drop dead comment#130
woutervh merged 7 commits into
mainfrom
ci/windows-sitecustomize-guard-cleanup

Conversation

@woutervh

Copy link
Copy Markdown
Contributor

Summary

Small follow-up to #129 (the windows-latest CI job).

  • linting.yaml's "Remove sitecustomize.py" step runs sudo rm -f ..., which is Ubuntu-only.
    It's now gated behind if: runner.os == 'Linux' and renamed to match testing.yaml's step,
    for consistency - even though linting.yaml doesn't run a Windows job itself yet.
  • testing.yaml: removed the commented-out duplicate "Remove sitecustomize.py" block, dead
    since the live, guarded step was added right below it.

Testing

  • YAML parses cleanly for both workflows
  • zizmor (pedantic persona): no findings

…op dead comment

Mirrors the windows-latest-safety change from testing.yaml (#129):
- linting.yaml's "Remove sitecustomize.py" step is Ubuntu-specific (sudo rm),
  so it's now gated behind `if: runner.os == 'Linux'` and renamed for
  consistency, even though linting.yaml doesn't run a Windows job yet -
  keeps both workflows honest about the same assumption.
- testing.yaml: remove the commented-out "Remove sitecustomize.py" block
  that's been dead since the live, guarded step was added right below it.
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2f14440) to head (5a3af69).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #130   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines           83        83           
  Branches         4         4           
=========================================
  Hits            83        83           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

pyproject.toml classifies Operating System :: Microsoft :: Windows, but
testing.yaml's matrix only ran ubuntu-latest, and the one test that behaves
differently on Windows (test_autoread_dotenv_unreadable_file_warns, which
relies on chmod-based permission denial) is skipif'd there - so that path
was never actually exercised on the one platform it differs most on.

Adds a single windows-latest job (Python 3.14) via matrix.include, rather
than crossing all 7 Python versions with it, to keep the added job count
small; it's free either way since this is a public repo (GitHub Actions
minutes are unlimited for public repos on every runner OS).

Two changes were needed to make the job actually work rather than just
exist:
- The ubuntu-remove-global-sitecustomize step is Linux-specific (sudo rm),
  so it's now gated behind `if: runner.os == 'Linux'`.
- The job now forces `shell: bash` as the default, so the existing
  ${VAR}-style run steps use Windows' bundled Git Bash instead of falling
  back to pwsh's incompatible variable syntax.

Verified: zizmor and the YAML parses cleanly; the justfile's install/build
recipes already have [unix]/[windows] variants for the OS-sensitive steps
(symlink creation, dir creation), so no changes were needed there.
@woutervh
woutervh merged commit 70ee484 into main Aug 22, 2026
22 checks passed
@woutervh
woutervh deleted the ci/windows-sitecustomize-guard-cleanup branch August 22, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant