Skip to content

Refactor optimizer implementations and improve multi_tensor ops #26

Refactor optimizer implementations and improve multi_tensor ops

Refactor optimizer implementations and improve multi_tensor ops #26

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: Run pre-commit
run: bash ./qa/format.sh