Merge pull request #14 from RewstApp/feature/sc-42154/add-configurati… #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Code Coverage | |
on: | |
push: | |
jobs: | |
coverage: | |
name: Calculate code coverage | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install coverage-lcov | |
- name: Run tests using coverage.py module | |
run: | | |
pytest --cov=. | |
- name: Generate lcov file | |
run: | | |
coverage-lcov | |
- name: Code Coverage Summary Report | |
uses: VGVentures/[email protected] | |
with: | |
path: lcov.info | |
min_coverage: 90 |