Repository navigation
build(deps): bump the github-actions group with 4 updates #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CONTRACT: this is one of THIS repo's own path-filtered script tests, NOT a reusable | |
| # workflow. It is not callable and has no caller pattern: | |
| # TRIGGERS — `pull_request` and `push` to main, both filtered to scripts/linear-ticket/** | |
| # and this file. A change elsewhere in the repo does not run it. | |
| # INPUTS — none. SECRETS — none. Read-only `contents: read`; the suite is hermetic and | |
| # makes no network call. | |
| # The reusable workflow these scripts back is .github/workflows/linear-ticket.yml. | |
| name: Test linear-ticket scripts | |
| # Runs the hermetic lib.py unittest suite for the linear-ticket gate. The gate decides | |
| # whether every consuming repo's PRs can merge, so a regression in the policy filter, | |
| # candidate extraction, or error classification silently passes or blocks PRs — cheap to | |
| # guard with a unit run on change. The real-Linear behaviours (URL canonicalization, | |
| # attachment timing) are proven in the pilot, not here. | |
| on: | |
| pull_request: | |
| paths: | |
| - 'scripts/linear-ticket/**' | |
| - '.github/workflows/test-linear-ticket.yml' | |
| # linear-ticket.yml passes the scripts their whole input contract through env, so a | |
| # change to it can break the suite without touching a file under scripts/linear-ticket/. | |
| - '.github/workflows/linear-ticket.yml' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'scripts/linear-ticket/**' | |
| - '.github/workflows/test-linear-ticket.yml' | |
| - '.github/workflows/linear-ticket.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: unittest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Compile the validator (syntax gate for validate.py, which the suite does not import) | |
| run: python3 -m py_compile scripts/linear-ticket/lib.py scripts/linear-ticket/validate.py | |
| - name: lib suite | |
| run: python3 -m unittest discover -s scripts/linear-ticket/tests -p 'test_*.py' -v |