Checking in for flight to UK. #340
This file contains hidden or 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: 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 | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| coverage report -i >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| - name: Upload htmlcov | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: big_htmlcov | |
| path: htmlcov/ | |
| - name: Fail if not 100% coverage | |
| run: | | |
| coverage report -i --fail-under=100 |