Skip to content

0.9.3! Improvements to pragma_include. #7

0.9.3! Improvements to pragma_include.

0.9.3! Improvements to pragma_include. #7

Workflow file for this run

name: Run coverage
on:
push:
permissions:
contents: read
jobs:
run-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install necessary dependencies
run: |
python -m pip install --upgrade pip coverage
pip install .
- name: Run coverage without optional dependencies
run: |
coverage run --parallel-mode tests/test_all.py
- name: Install optional dependencies
run: |
python -m pip install . '.[test]'
- name: Run coverage with optional dependencies
run: |
coverage run --parallel-mode tests/test_all.py
- name: Produce coverage reports
run: |
coverage combine
coverage html -i --omit=perky/transform.py
echo '```' >> $GITHUB_STEP_SUMMARY
coverage report -i --omit=perky/transform.py >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Upload htmlcov
uses: actions/upload-artifact@v3
with:
name: big_htmlcov
path: htmlcov/
- name: Fail if not 100% coverage
run: |
coverage report -i --omit=perky/transform.py --fail-under=100