Skip to content

chore(deps): update konflux references #3655

chore(deps): update konflux references

chore(deps): update konflux references #3655

Workflow file for this run

---
name: Python Checks for Pull Requests
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
merge_group:
types: [checks_requested]
jobs:
python:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Install OS packages
# libkrb5-dev is required for gssapi dependency installation (krb5-config command)
run: |
sudo apt-get -y update
sudo apt-get install -y libkrb5-dev
curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 \
-o /usr/local/bin/yq
sudo chmod +x /usr/local/bin/yq
- name: Check out repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Black Lint
uses: psf/black@87928e6d6761a4a6d22250e1fee5601b3998086e # stable
- name: Setup python environment for flake8 check
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12" # Same as in Dockerfile
- name: flake8 Lint
uses: py-actions/flake8@84ec6726560b6d5bd68f2a5bed83d62b52bb50ba # v2
- name: Run pytest with coverage
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
uv sync --dev
uv run pytest --cov=. --cov-report=xml:coverage.xml
- name: Get changed Python files
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
with:
files: |
**/*.py
- name: docstring test
if: steps.changed-files.outputs.any_changed == 'true'
run: |
pip install ruff
echo "Running ruff on changed Python files:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
ruff check --select D ${{ steps.changed-files.outputs.all_changed_files }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit-tests
files: coverage.xml
fail_ci_if_error: false