All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
18 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
19 cancel-in-progress: true
23 # We want to run on external PRs, but not on our own internal PRs as they'll be run
24 # by the push to the branch. Without this if check, checks are duplicated since
25 # internal PRs match both the push and pull_request events.
27 github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
30 runs-on: ${{ matrix.os }}
34 python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
35 os: [ubuntu-latest, macOS-latest, windows-latest]
38 - uses: actions/checkout@v3
40 - name: Set up Python ${{ matrix.python-version }}
41 uses: actions/setup-python@v4
43 python-version: ${{ matrix.python-version }}
47 python -m pip install --upgrade pip
48 python -m pip install --upgrade tox
51 if: "!startsWith(matrix.python-version, 'pypy')"
52 run: tox -e ci-py -- -v --color=yes
54 - name: Unit tests (pypy)
55 if: "startsWith(matrix.python-version, 'pypy')"
56 run: tox -e ci-pypy3 -- -v --color=yes
58 - name: Upload coverage to Coveralls
59 # Upload coverage if we are on the main repository and
60 # we're running on Linux (this action only supports Linux)
62 github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' &&
63 !startsWith(matrix.python-version, 'pypy')
64 uses: AndreMiras/coveralls-python-action@v20201129
66 github-token: ${{ secrets.GITHUB_TOKEN }}
68 flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
73 if: github.repository == 'psf/black'
75 runs-on: ubuntu-latest
77 - uses: actions/checkout@v3
78 - name: Send finished signal to Coveralls
79 uses: AndreMiras/coveralls-python-action@v20201129
81 parallel-finished: true
86 github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
88 runs-on: ${{ matrix.os }}
92 os: [ubuntu-latest, macOS-latest]
95 - uses: actions/checkout@v3
97 - name: Set up latest Python
98 uses: actions/setup-python@v4
102 - name: Install black with uvloop
104 python -m pip install pip --upgrade --disable-pip-version-check
105 python -m pip install -e ".[uvloop]"
107 - name: Format ourselves
108 run: python -m black --check .