-
Notifications
You must be signed in to change notification settings - Fork 257
52 lines (49 loc) · 1.41 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Send Coverage to different analytic engines
# Only for last versions of python and mongo
on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mongodb-version: [5.0]
include:
- name: "coverage"
python: "3.11"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox virtualenv
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test build
run: "nox -s 'latest-${{ matrix.python }}(wtf=True, toolbar=True)' -- --cov-report=xml --cov-report=html"
- name: Send coverage report to codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
- name: Send coverage report to codeclimate
uses: paambaati/[email protected]
continue-on-error: true
with:
coverageCommand: echo "Ignore rerun"
coverageLocations: ${{github.workspace}}/coverage.xml:coverage.py
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}