Skip to content

Commit 302d2af

Browse files
committed
Update lint workflow to use uv for dependencies
1 parent 8d8364d commit 302d2af

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/lint-test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ jobs:
88
name: Run linting & tests
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Install Python Dependencies
12-
uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v6
1313
with:
14-
python_version: '3.12'
15-
install_args: "--only main --only lint --only test"
14+
enable-cache: true
15+
cache-dependency-glob: "uv.lock"
16+
activate-environment: true
17+
18+
- name: Install dependencies
19+
run: uv sync --frozen --group lint --group test
1620

1721
# Attempt to run the bot. Setting `IN_CI` to true, so bot.run() is never called.
1822
# This is to catch import and cog setup errors that may appear in PRs, to avoid crash loops if merged.

0 commit comments

Comments
 (0)