File tree Expand file tree Collapse file tree 2 files changed +18
-21
lines changed Expand file tree Collapse file tree 2 files changed +18
-21
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
lint :
12
12
runs-on : ubuntu-latest
13
+
14
+ strategy :
15
+ matrix :
16
+ python-version : ["3.12"]
13
17
defaults :
14
18
run :
15
19
shell : bash -l {0}
@@ -18,34 +22,26 @@ jobs:
18
22
- name : Check out code
19
23
uses : actions/checkout@v4
20
24
21
- - name : Set up Miniconda
22
- uses : conda-incubator /setup-miniconda@v3
25
+ - name : Install uv
26
+ uses : astral-sh /setup-uv@v6
23
27
with :
24
- activate-environment : torch27
25
- python-version : 3.12
26
- channels : defaults,pytorch,conda-forge
28
+ python-version : ${{ matrix.python-version }}
29
+ enable-cache : true
27
30
28
- - name : Cache dependencies
29
- uses : actions/cache@v4
30
- with :
31
- path : |
32
- ~/.conda/pkgs
33
- ~/.cache/pip
34
- key : ${{ runner.os }}-deps-${{ hashFiles('.github/workflows/lint.yml') }}
35
- restore-keys : |
36
- ${{ runner.os }}-deps-
31
+ - name : Create environment
32
+ run : |
33
+ uv venv --python ${{ matrix.python-version }}
37
34
38
35
- name : Install PyTorch
39
36
run : |
40
- pip3 install -U --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
37
+ uv pip install -U --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
41
38
42
39
- name : Install lint dependencies
43
- run : ./lint.sh install
44
-
45
- - name : Install pre-commit
46
40
run : |
47
- python -m pip install --upgrade pip
48
- pip install .'[dev]'
41
+ uv pip install pyright==1.1.403
42
+ uv pip install pre-commit
43
+ uv pip install .'[dev]'
49
44
50
45
- name : Run pre-commit
51
- run : pre-commit run --all-files
46
+ run : |
47
+ uv run pre-commit run --all-files
Original file line number Diff line number Diff line change 91
91
benchmarks /tritonbench
92
92
site
93
93
generated
94
+ uv.lock
You can’t perform that action at this time.
0 commit comments