Skip to content

Adding collector providing the total of vCPU of all workers #739

Adding collector providing the total of vCPU of all workers

Adding collector providing the total of vCPU of all workers #739

Workflow file for this run

name: "PR checks"
on:
pull_request:
jobs:
pr-checks:
runs-on: ubuntu-latest
steps:
- name: "Checkout metrics-utility (${{ github.ref }})"
uses: actions/checkout@v4
- name: "Install uv"
uses: astral-sh/setup-uv@v6
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: "Check for changes in uv.lock"
run: |
uv sync
if ! git diff --quiet uv.lock; then
echo "uv.lock has changed. Run 'uv sync' locally and commit the updated lock file."
git diff uv.lock
exit 1 # Fail the job
fi
- name: "Run ruff check"
run: |
uvx ruff check --output-format=github .
- name: "Check ruff format"
run: |
uvx ruff format --check