7b34e073创建于 2025年4月16日历史提交
name: Formatting

on:
  push:
    branches:
      - 'staging**'
  pull_request:
    branches:
      '**'

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:

  # formatting and basic install on cpu-only machine
  formatting:
    runs-on: ubuntu-22.04

    steps:
      - uses: actions/checkout@v2

      - name: environment
        run: |
          which python
          python --version
          pip install pre-commit>=2.20.0

      - name: Formatting checks
        run: |
           pre-commit run --all-files