Skip to content

Commit

Permalink
Added Coverage Report to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Olthoff231381 committed Aug 1, 2024
1 parent ea0ebf5 commit d9ce617
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,25 @@ jobs:
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
pip install pytest pytest-cov
- name: Execute PyTest
run: python -m pytest -svv
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 }}
file: ./mailcom/coverage_re/coverage.xml

0 comments on commit d9ce617

Please sign in to comment.