Skip to content

Commit 50d4d0d

Browse files
committed
nit
1 parent e1bb103 commit 50d4d0d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
branches:
9-
- main
107
jobs:
118
build:
129
runs-on: ubuntu-latest

.github/workflows/unit_tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Unit Tests
2-
2+
env:
3+
UV_SYSTEM_PYTHON: 1
34
on:
45
push:
56
branches:
@@ -26,6 +27,8 @@ jobs:
2627
cache-dependency-path: pyproject.toml
2728
- name: Pre-Commit
2829
uses: pre-commit/[email protected]
30+
- name: Type Checking
31+
uses: jakebailey/pyright-action@v1
2932

3033
testcpu:
3134
name: CPU Tests
@@ -45,10 +48,10 @@ jobs:
4548
enable-cache: true
4649

4750
- name: Install dependencies
48-
run: uv sync --locked --dev
51+
run: uv sync --extra dev
4952

5053
- name: Run tests
51-
run: uv run pytest --showlocals -s -vv -n=auto tests
54+
run: uv run pytest tests --showlocals -s -vv -n=auto
5255

5356
- name: Cleanup
5457
run: uv cache prune --ci

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dev = [
2626
"pytest",
2727
"pytest-xdist",
2828
"pyright",
29+
"setuptools",
2930
"trl",
3031
"wandb"
3132
]

0 commit comments

Comments
 (0)