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
1 change: 1 addition & 0 deletions .claude/rules/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The required check names are in `AGENTS.md` (CI). Reading a red check: `.claude/
- actionlint, which also shellchecks every inline `run:` block;
- `shellcheck --severity=warning` on every `*.sh` under `scripts` and `.claude/skills`;
- the tooling tests: `scripts/ci/test_*.py`, `scripts/lib/test_*.py`, `scripts/test_localization.py`, `.github/scripts/test_update_registry.py` and two shell tests;
- `scripts/release/test_*.py` on Python 3.9 from `actions/setup-python`, in a venv that installs `scripts/release/requirements.txt` with `pip --require-hashes`;
- `check-lib-sourcing.py`, `check-plugin-manifest.py`, `check-deployment-target.sh`, `check-ios-shared-isolation.py`;
- `localization.py plugins` and `plugins --target ios`;
- `check-string-catalogs.py`, `check-license-inventory.py`, `check-entitlements.py`, `check-test-plans.py`;
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/repo-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,27 @@ jobs:
bash scripts/ci/test_draft_release.sh
bash scripts/ci/test_libs_release.sh

# 3.9 is the macOS /usr/bin/python3 that runs notes.py in the build. The other steps keep the
# runner's Python, which has PyYAML.
- name: Set up Python 3.9 for the release tooling
id: python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.9"
update-environment: false

- name: Install the release tooling
env:
PYTHON: ${{ steps.python.outputs.python-path }}
run: |
set -euo pipefail
"$PYTHON" -m venv "$RUNNER_TEMP/release-venv"
"$RUNNER_TEMP/release-venv/bin/pip" install --quiet --disable-pip-version-check --require-hashes \
-r scripts/release/requirements.txt

- name: Test the release tooling
run: '"$RUNNER_TEMP/release-venv/bin/python" -m unittest discover -s scripts/release -p "test_*.py"'

# shellcheck cannot tell a library function from a command, so a missing source is exit 127
# at release time (v0.67.1).
- name: Check every script sources the libraries it calls into
Expand Down
Loading
Loading