WIP revisiting reopening logic #807
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: Pytest coverage | |
on: | |
schedule: | |
# Generate Pytest coverage report. | |
- cron: "5 0 * * *" | |
pull_request: | |
types: | |
- "opened" | |
- "reopened" | |
- "synchronize" | |
- "labeled" | |
- "unlabeled" | |
- "edited" | |
workflow_dispatch: | |
jobs: | |
python_unit_tests_coverage: | |
name: UT coverage [python] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate Python Unit Tests Coverage report | |
env: | |
PYTHONPATH: ${{ github.workspace }}/src/python | |
run: | | |
pip install -r ${{ github.workspace }}/src/python/requirements.txt | |
cd ${{ github.workspace }}/src/python | |
pytest --cov blazingmq \ | |
--cov-report term \ | |
--cov-report html:python-coverage \ | |
--cov-report xml:python-coverage.xml | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: | | |
${{ github.workspace }}/src/python/python-coverage | |
${{ github.workspace }}/src/python/python-coverage.xml |