Skip to content

Commit efba2c5

Browse files
authored
Update Python CI workflow to use uvx command
1 parent 34fc3cf commit efba2c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/python-app.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install uv
29-
uv add flake8 pytest
3029
uv sync
3130
3231
# python -m pip install --upgrade pip
@@ -35,10 +34,10 @@ jobs:
3534
- name: Lint with flake8
3635
run: |
3736
# stop the build if there are Python syntax errors or undefined names
38-
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
uvx flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3938
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40-
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4140
- name: Test with pytest
4241
run: |
43-
uv run pytest
42+
uvx pytest
4443

0 commit comments

Comments
 (0)