Skip to content

Commit 21d565e

Browse files
authored
Merge pull request #638 from opsmill/pog-ruff-version-from-uvlock
Use ruff version from uv.lock in CI
2 parents 6060485 + fe3e57a commit 21d565e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,26 @@ jobs:
7171

7272
python-lint:
7373
if: needs.files-changed.outputs.python == 'true'
74-
needs: ["files-changed"]
74+
needs: ["files-changed", "prepare-environment"]
7575
runs-on: "ubuntu-latest"
7676
timeout-minutes: 5
7777
steps:
7878
- name: "Check out repository code"
7979
uses: "actions/checkout@v5"
80-
- name: "Setup environment"
81-
run: "pip install ruff==0.14.5"
80+
- name: Set up Python
81+
uses: actions/setup-python@v6
82+
with:
83+
python-version: "3.12"
84+
- name: Install UV
85+
uses: astral-sh/setup-uv@v4
86+
with:
87+
version: "${{ needs.prepare-environment.outputs.UV_VERSION }}"
88+
- name: Install dependencies
89+
run: uv sync --group lint
8290
- name: "Linting: ruff check"
83-
run: "ruff check ."
91+
run: "uv run ruff check ."
8492
- name: "Linting: ruff format"
85-
run: "ruff format --check --diff ."
93+
run: "uv run ruff format --check --diff ."
8694

8795

8896
markdown-lint:

0 commit comments

Comments
 (0)