41 lines
871 B
YAML
41 lines
871 B
YAML
name: Coverage check
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- current-release
|
|
- "*LTS"
|
|
tags:
|
|
- "!*" # Do not execute on tags
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- current-release
|
|
- "*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
|
|
- name: Run coverage
|
|
run: tox -e coverage
|
|
continue-on-error: true
|
|
- uses: codecov/codecov-action@v2
|
|
with:
|
|
files: ./coverage.xml
|
|
fail_ci_if_error: false
|