-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 962 Bytes
/
ci.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
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/