Skip to content

Test covergage

Test covergage #32

Workflow file for this run

name: CI Check
on: [push, pull_request, workflow_dispatch]
jobs:
clean-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Getting repository
uses: actions/checkout@v4
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Install pytest
run: |
pip install pytest pytest-cov
- name: Execute PyTest
run: python -m pytest -svv --cov=mailcom --cov-report=xml:mailcom/coverage_re/coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./mailcom/coverage_re/