2021-06-21 12:53:09 +01:00
|
|
|
name: Coverage check
|
2021-11-23 13:53:46 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-07-09 07:21:39 +01:00
|
|
|
- current-release
|
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
|
2023-07-09 07:21:39 +01:00
|
|
|
- current-release
|
2022-01-16 07:03:04 +00:00
|
|
|
- "*LTS"
|
2023-08-29 19:47:40 +01:00
|
|
|
|
2021-06-21 12:53:09 +01:00
|
|
|
jobs:
|
2023-08-29 19:47:40 +01:00
|
|
|
coverage:
|
|
|
|
name: Check coverage
|
|
|
|
runs-on: ubuntu-latest
|
2021-06-21 12:53:09 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
steps:
|
2022-01-09 10:22:09 +00:00
|
|
|
- name: Run coverage
|
2023-08-29 19:47:40 +01:00
|
|
|
uses: sanic-org/simple-tox-action@v1
|
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
tox-env: coverage
|
|
|
|
ignore-errors: true
|
|
|
|
- name: Run Codecov
|
|
|
|
uses: codecov/codecov-action@v3
|
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
|