summaryrefslogtreecommitdiff
path: root/.github/workflows/coverage.yml
blob: 101000f017df8b1730a844cf7e759d9e4c96c847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Coverage

on:
  push:
  pull_request:
  release:
    types: [published]

jobs:
  coverage:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: pypy3
    - name: Ensure we have new enough versions to respect python_version
      run: python -m pip install -U pip setuptools
    - name: Install tox
      run: python -m pip install tox
    - name: Collect & Upload Coverage
      # codecov.io is too flaky to fail for this right now
      continue-on-error: true
      run: python -m tox -e pypy3-format-codecov
      env:
        CODECOV_TOKEN: 2b38dae1-41c4-4435-a29d-79a1299e5617