[ci] Add workflows to validate TE QA test cases #16
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: format_check | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| format: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| PRID: ${{ github.event.pull_request.number }} | |
| BRANCH: main | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.base.ref }} | |
| - name: Merge PR to sub-branch | |
| run: | | |
| git fetch origin pull/${PRID}/merge | |
| git checkout -b test FETCH_HEAD | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Run pre-commit | |
| run: bash ./qa/format.sh |