Skip to content

mongoengine 29

mongoengine 29 #107

Workflow file for this run

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: [6.0]
include:
- name: "coverage"
python: "3.10"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox virtualenv
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test build
run: "nox -s \"latest-${{ matrix.python }}(db_version='6.0', wtf=True, toolbar=True)\" -- --cov-report=xml --cov-report=html"
- name: Send coverage report to codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
- name: Send coverage report to codeclimate
uses: paambaati/codeclimate-action@v6.0.0
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}}