Files
PyGithub/.github/workflows/check.yml
T
Steve Kowalik e79b9013fe Turn on coverage reporting for codecov (#1522)
Since we migrated from Travis to GitHub Actions, our coverage on codecov
has been reporting as 0%, since uploading the .coverage file is a
terrible idea. Turn on XML-based reporting, ignore the file and use that
when we upload to codecov.
2020-05-19 12:28:33 +10:00

28 lines
706 B
YAML

name: check
on:
pull_request:
push:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: "${{ matrix.python-version }}"
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage to Codecov
if: matrix.python-version == 3.6
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml