diff --git a/.github/workflows/yapf.yml b/.github/workflows/yapf.yml index b163c960db555..af7e6dc57b234 100644 --- a/.github/workflows/yapf.yml +++ b/.github/workflows/yapf.yml @@ -4,28 +4,17 @@ on: # Trigger the workflow on push or pull request, # but only for the main branch push: - branches: - - main - pull_request: - branches: - - main + jobs: yapf: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10"] + runs-on: test-label steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install yapf==0.32.0 - pip install toml==0.10.2 - - name: Running yapf + fetch-depth: 0 + submodules: recursive + + - name: hello run: | - yapf --diff --recursive . + echo "hello world ... " +