1name: Python Format 2 3on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9jobs: 10 format: 11 name: Check format 12 runs-on: ubuntu-latest 13 steps: 14 - uses: actions/checkout@v3 15 - name: Set Up Python 3.11 16 uses: actions/setup-python@v4 17 with: 18 python-version: 3.11 19 - name: Install 20 run: | 21 pip install --upgrade pip 22 pip install black=="23.12.1" 23 - run: black --check tests/ py/pica --exclude py/pica/pica/packets 24