Red Hat Konflux kflux-prd-rh03 update gh-actions-exp-e0b28 #49
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 tests and upload coverage | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| coverage: | |
| name: Run tests and collect coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| - name: Install dependencies | |
| run: pip install pytest pytest-cov | |
| - name: Run tests | |
| run: pytest --cov=hello --cov-report=xml tests | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |