Skip to content

Commit 1e6a34a

Browse files
Bug: Fix lint workflow
1 parent ac61b4d commit 1e6a34a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ jobs:
3737
cache-dependency-glob: "backend/pyproject.toml"
3838

3939
- name: Install dependencies
40-
run: uv sync --dev
40+
run: |
41+
uv venv
42+
uv pip install -e ".[dev]"
4143
4244
- name: Run pylint
4345
id: pylint
4446
run: |
4547
echo "Running pylint..."
46-
if uv run pylint src > pylint-output.txt 2>&1; then
48+
if .venv/bin/pylint src > pylint-output.txt 2>&1; then
4749
echo "PYLINT_PASSED=true" >> $GITHUB_ENV
4850
echo "No pylint errors found!"
4951
else
@@ -57,7 +59,7 @@ jobs:
5759
id: ruff
5860
run: |
5961
echo "Running ruff check..."
60-
if uv run ruff check . > ruff-output.txt 2>&1; then
62+
if .venv/bin/ruff check . > ruff-output.txt 2>&1; then
6163
echo "RUFF_PASSED=true" >> $GITHUB_ENV
6264
echo "No ruff errors found!"
6365
else
@@ -71,7 +73,7 @@ jobs:
7173
id: mypy
7274
run: |
7375
echo "Running mypy..."
74-
if uv run mypy . > mypy-output.txt 2>&1; then
76+
if .venv/bin/mypy . > mypy-output.txt 2>&1; then
7577
echo "MYPY_PASSED=true" >> $GITHUB_ENV
7678
echo "No mypy errors found"
7779
else

0 commit comments

Comments
 (0)