2021-06-21 12:53:09 +01:00
|
|
|
name: Coverage check
|
2021-11-23 13:53:46 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
tags:
|
|
|
|
- "!*" # Do not execute on tags
|
|
|
|
pull_request:
|
2021-12-05 22:05:07 +00:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2021-06-21 12:53:09 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-12-05 22:05:07 +00:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-06-21 12:53:09 +01:00
|
|
|
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
|
|
|
|
- uses: paambaati/codeclimate-action@v2.5.3
|
|
|
|
if: always()
|
|
|
|
env:
|
|
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE }}
|
|
|
|
with:
|
|
|
|
coverageCommand: tox -e coverage
|