add gpu_health_check for communication test #26
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: Install dependencies | |
| run: | | |
| pip install black==24.4.2 isort==5.13.2 pre-commit==2.17.0 | |
| - name: Run pre-commit | |
| run: | | |
| set +e | |
| bash -x tools/codestyle/pre-commit.sh; EXCODE=$? | |
| exit $EXCODE |