TPT-4298: Added PR title checking to lint workflow and clean up release notes workflow #951
Workflow file for this run
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
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| # Enforce TPT-1234: prefix on PR titles, with the following exemptions: | |
| # - PRs labeled 'dependencies' (e.g. Dependabot PRs) | |
| # - PRs labeled 'hotfix' (urgent fixes that may not have a ticket) | |
| # - PRs labeled 'community-contribution' (external contributors without TPT tickets) | |
| # - PRs labeled 'ignore-for-release' (release PRs that don't need a ticket prefix) | |
| - name: Validate PR Title | |
| if: github.event_name == 'pull_request' | |
| uses: amannn/action-semantic-pull-request@v6 | |
| with: | |
| types: | | |
| TPT-\d+ | |
| requireScope: false | |
| # Override the default header pattern to allow hyphens and digits in the type | |
| # (e.g. "TPT-4298: Description"). The default pattern only matches word | |
| # characters (\w) which excludes hyphens. | |
| headerPattern: '^([\w-]+):\s?(.*)$' | |
| headerPatternCorrespondence: type, subject | |
| ignoreLabels: | | |
| dependencies | |
| hotfix | |
| community-contribution | |
| ignore-for-release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: checkout repo | |
| uses: actions/checkout@v6 | |
| - name: setup python 3 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| - name: install dependencies | |
| run: make dev-install | |
| - name: run linter | |
| run: make lint | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests | |
| run: | | |
| pip install ".[test]" | |
| tox |