File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments