Merge pull request #35 from mbooz-rh/RHELDST-40404 #142
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: 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 |