2021-06-21 12:53:09 +01:00
|
|
|
name: Coverage check
|
2021-11-23 13:53:46 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-01-06 10:40:52 +00:00
|
|
|
- "*LTS"
|
2021-11-23 13:53:46 +00:00
|
|
|
tags:
|
|
|
|
- "!*" # Do not execute on tags
|
|
|
|
pull_request:
|
2022-01-16 07:03:04 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- "*LTS"
|
2021-06-21 12:53:09 +01:00
|
|
|
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
|
2021-06-21 12:53:09 +01:00
|
|
|
with:
|
2022-01-09 10:22:09 +00:00
|
|
|
files: ./coverage.xml
|
|
|
|
fail_ci_if_error: false
|