From 37406cd031c3ca96c7ef70d55323209160c3d2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hanko?= Date: Wed, 9 Sep 2026 13:55:23 +0200 Subject: [PATCH 1/2] ci: use astral-sh/setup-ruff for the lint job Replace setup-python + full requirements.txt install with the setup-ruff action (pinned to 0.15.19, matching requirements.txt) with caching enabled. The lint job needs nothing but ruff, so this drops the lbr_trex_client/scapy/paramiko install chain, making the job faster and less prone to unrelated native build failures. Also emit check results in GitHub's annotation format. --- .github/workflows/lint.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9ac9f78..ad16b46 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,5 @@ +name: lint + on: push: branches: ["*"] @@ -5,27 +7,22 @@ on: branches: ["*"] jobs: - lint: + ruff: name: Ruff Check & Format runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - name: Set up Ruff + uses: astral-sh/setup-ruff@v3 with: - python-version: "3.11" - - - name: Install ruff - run: | - python -m pip install --upgrade pip - pip install "ruff==$(grep -oP '^ruff==\K.*' requirements.txt)" + version: 0.15.19 + enable-cache: true - name: Ruff check id: ruff_check - run: ruff check + run: ruff check --output-format=github - name: Ruff format run: ruff format --check From 53d57c9d91a191b384338e168dba9004b5edd467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hanko?= Date: Wed, 9 Sep 2026 13:59:15 +0200 Subject: [PATCH 2/2] ci: fix unresolvable action name and inputs astral-sh/setup-ruff does not exist (runner: repository not found) and enable-cache is not a valid input for the ruff action. Use the actual action astral-sh/ruff-action@v4.1.0, resolve the ruff version from requirements.txt via version-file, and pass args: --version so the setup step only installs instead of also running a check. --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ad16b46..8d4b7be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,10 +15,10 @@ jobs: uses: actions/checkout@v4 - name: Set up Ruff - uses: astral-sh/setup-ruff@v3 + uses: astral-sh/ruff-action@v4.1.0 with: - version: 0.15.19 - enable-cache: true + version-file: "requirements.txt" + args: "--version" - name: Ruff check id: ruff_check