os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Unit tests
if: "!startsWith(matrix.python-version, 'pypy')"
- run: tox -e ci-py -- -v --color=yes
+ run:
+ tox -e ci-py$(echo ${{ matrix.python-version }} | tr -d '.') -- -v --color=yes
- name: Unit tests (pypy)
if: "startsWith(matrix.python-version, 'pypy')"
- 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'
- uses: AndreMiras/coveralls-python-action@v20201129
+ 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
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Send finished signal to Coveralls
- uses: AndreMiras/coveralls-python-action@v20201129
+ uses: AndreMiras/coveralls-python-action@8799c9f4443ac4201d2e2f2c725d577174683b99
with:
parallel-finished: true
debug: true
os: [ubuntu-latest, macOS-latest]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up latest Python
uses: actions/setup-python@v4