Run tests #1206
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| types: [checks_requested] | |
| jobs: | |
| test: | |
| permissions: | |
| checks: write | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.11 | |
| - name: Install pipenv | |
| run: pip install pipenv==2023.7.23 | |
| - name: install packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libkrb5-dev | |
| - name: Create virtualenv | |
| run: pipenv sync | |
| - name: Run tests | |
| run: | | |
| pipenv run pytest --cov=verify_rpms --cov-report=xml:coverage.xml tests | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| use_oidc: true | |
| flags: unit-tests | |
| files: coverage.xml | |
| fail_ci_if_error: false |