sanic/.github/workflows/coverage.yml

39 lines
823 B
YAML
Raw Normal View History

name: Coverage check
on:
push:
branches:
- main
- "*LTS"
tags:
- "!*" # Do not execute on tags
pull_request:
2022-01-16 07:03:04 +00:00
branches:
- main
- "*LTS"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies 🔨
run: |
python -m pip install --upgrade pip
pip install tox
2022-01-09 10:22:09 +00:00
- name: Run coverage
run: tox -e coverage
2022-01-16 07:03:04 +00:00
continue-on-error: true
2022-01-09 10:22:09 +00:00
- uses: codecov/codecov-action@v2
with:
2022-01-09 10:22:09 +00:00
files: ./coverage.xml
fail_ci_if_error: false