Merge pull request #406 from redhat-performance/development #197
This file contains 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: Codecov | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [development] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
PYTHON: '3.9' | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Generate coverage report | |
run: | | |
pip install -r tests/test-requirements.txt | |
PYTHONPATH=src pytest --cov=./ --cov-report=xml --cov-config=.coveragerc -p no:warnings | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
env_vars: PYTHON | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false | |
verbose: true |