Skip to content

[RHELC-1055] Print pre-conversion report to txt file (#924) #88

[RHELC-1055] Print pre-conversion report to txt file (#924)

[RHELC-1055] Print pre-conversion report to txt file (#924) #88

Workflow file for this run

name: test_coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
coverage:
name: coverage-centos${{ matrix.centos_ver }}
strategy:
matrix:
centos_ver: [7, 8]
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run pytest coverage
run: |
make tests${{ matrix.centos_ver }} PYTEST_ARGS="--cov --cov-report xml --cov-report term" KEEP_TEST_CONTAINER=1 BUILD_IMAGES=0
podman cp pytest-container:/data/coverage.xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
env_vars: OS,PYTHON
flags: centos-linux-${{ matrix.centos_ver }}
name: coverage-centos
fail_ci_if_error: true
files: ./coverage.xml
verbose: true # optional (default = false)