Skip to content

[BugFix] Resume partial tests for inference and serving #37

[BugFix] Resume partial tests for inference and serving

[BugFix] Resume partial tests for inference and serving #37

Workflow file for this run

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