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]
28 os: [ubuntu-latest, macOS-latest, windows-latest]
31 - uses: actions/checkout@v2
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
45 tox -e py -- -v --color=yes
47 - name: Publish coverage to Coveralls
48 # If pushed / is a pull request against main repo AND
49 # we're running on Linux (this action only supports Linux)
51 ((github.event_name == 'push' && github.repository == 'psf/black') ||
52 github.event.pull_request.base.repo.full_name == 'psf/black') && matrix.os ==
55 uses: AndreMiras/coveralls-python-action@v20201129
57 github-token: ${{ secrets.GITHUB_TOKEN }}
59 flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
64 # If pushed / is a pull request against main repo
66 (github.event_name == 'push' && github.repository == 'psf/black') ||
67 github.event.pull_request.base.repo.full_name == 'psf/black'
69 runs-on: ubuntu-latest
71 - uses: actions/checkout@v2
72 - name: Coveralls finished
73 uses: AndreMiras/coveralls-python-action@v20201129
75 parallel-finished: true