Skip to content

Commit 0a634bf

Browse files
committed
Get uv working hopefully
1 parent eb52f20 commit 0a634bf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python checks
1+
name: Check example files are linted and formatted
22

33
on:
44
push:

.github/workflows/test-github-models.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131

3232
- name: Install dependencies
3333
run: |
34+
uv venv .venv
3435
uv pip install -r requirements.txt
3536
3637
- name: Test chat files with GitHub Models
@@ -39,8 +40,9 @@ jobs:
3940
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4041
GITHUB_MODEL: openai/gpt-4o-mini
4142
run: |
43+
source .venv/bin/activate
4244
files=("chat.py" "spanish/chat.py")
4345
for file in "${files[@]}"; do
4446
echo "Testing $file..."
45-
python "$file" || exit 1
47+
uv python "$file" || exit 1
4648
done

0 commit comments

Comments
 (0)