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.
16 # We want to run on external PRs, but not on our own internal PRs as they'll be run
17 # by the push to the branch. Without this if check, checks are duplicated since
18 # internal PRs match both the push and pull_request events.
20 github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
23 runs-on: ${{ matrix.os }}
27 python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
28 os: [ubuntu-latest, macOS-latest, windows-latest]
31 - uses: actions/checkout@v3
33 - name: Set up Python ${{ matrix.python-version }}
34 uses: actions/setup-python@v2
36 python-version: ${{ matrix.python-version }}
38 - name: Install dependencies
40 python -m pip install --upgrade pip
41 python -m pip install --upgrade tox
44 if: "!startsWith(matrix.python-version, 'pypy')"
46 tox -e ci-py -- -v --color=yes
48 - name: Unit tests pypy
49 if: "startsWith(matrix.python-version, 'pypy')"
51 tox -e ci-pypy3 -- -v --color=yes
53 - name: Publish coverage to Coveralls
54 # If pushed / is a pull request against main repo AND
55 # we're running on Linux (this action only supports Linux)
57 ((github.event_name == 'push' && github.repository == 'psf/black') ||
58 github.event.pull_request.base.repo.full_name == 'psf/black') && matrix.os ==
61 uses: AndreMiras/coveralls-python-action@v20201129
63 github-token: ${{ secrets.GITHUB_TOKEN }}
65 flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
70 # If pushed / is a pull request against main repo
72 (github.event_name == 'push' && github.repository == 'psf/black') ||
73 github.event.pull_request.base.repo.full_name == 'psf/black'
75 runs-on: ubuntu-latest
77 - uses: actions/checkout@v3
78 - name: Coveralls finished
79 uses: AndreMiras/coveralls-python-action@v20201129
81 parallel-finished: true