Skip to content

Onboard test coverage to Codecov [RHELDST-40404] #141

Onboard test coverage to Codecov [RHELDST-40404]

Onboard test coverage to Codecov [RHELDST-40404] #141

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
standard-ci:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get install -y krb5-config libkrb5-dev
python -m pip install -U pip
pip install tox
- name: Run auto-tests (Python 3.8 + Coverage)
env:
GITHUB_TOKEN: ${{ github.token }}
run: tox -e cov-ci
- 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
- name: Run static analysis
run: tox -e static
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e docs