+ if: "!startsWith(matrix.python-version, 'pypy')"
+ run:
+ tox -e ci-py$(echo ${{ matrix.python-version }} | tr -d '.') -- -v --color=yes
+
+ - name: Unit tests (pypy)
+ if: "startsWith(matrix.python-version, 'pypy')"
+ run: tox -e ci-pypy3 -- -v --color=yes
+
+ - name: Upload coverage to Coveralls
+ # Upload coverage if we are on the main repository and
+ # we're running on Linux (this action only supports Linux)
+ if:
+ github.repository == 'psf/black' && matrix.os == 'ubuntu-latest' &&
+ !startsWith(matrix.python-version, 'pypy')
+ uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ parallel: true
+ flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
+ debug: true
+
+ coveralls-finish:
+ needs: main
+ if: github.repository == 'psf/black'
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Send finished signal to Coveralls
+ uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99
+ with:
+ parallel-finished: true
+ debug: true
+
+ uvloop:
+ if:
+ github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
+ github.repository
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macOS-latest]
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up latest Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: "*"
+
+ - name: Install black with uvloop