File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 fail-fast : false
2222 matrix :
2323 include :
24- - os : ubuntu-20 .04
24+ - os : ubuntu-22 .04
2525 arch : x64
2626 pack_mode : dir
2727
3030 - name : 检出仓库
3131 uses : actions/checkout@v4.2.2
3232
33- - name : 安装 Python
34- uses : actions/setup-python@v5.3.0
35- with :
36- python-version : ' 3.8.10'
37- architecture : ${{ matrix.arch }}
38-
3933 - name : 安装 uv
4034 uses : astral-sh/setup-uv@v4
4135
Original file line number Diff line number Diff line change 44 push :
55 branches : [master]
66 pull_request :
7+ workflow_dispatch :
78
89jobs :
910 pre-commit :
10- runs-on : ubuntu-20 .04
11+ runs-on : ubuntu-22 .04
1112 steps :
1213 - uses : actions/checkout@v4
1314
14- - name : Set up Python 3.8.10
15- uses : actions/setup-python@v5
16- with :
17- python-version : " 3.8.10"
18-
1915 - name : Setup uv
20- uses : astral-sh/setup-uv@v3
16+ uses : astral-sh/setup-uv@v4
2117 with :
2218 enable-cache : true
2319
20+ - name : Install Python 3.8.10
21+ run : uv python install 3.8.10
22+
23+ - name : set uv venv
24+ run : uv venv
2425 - name : Install pre-commit with uv
2526 run : uv pip install pre-commit
2627
Original file line number Diff line number Diff line change 77
88jobs :
99 ruff :
10- runs-on : ubuntu-20.04
10+ runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
1313
14- - name : Set up Python 3.8.10
15- uses : actions/setup-python@v5
16- with :
17- python-version : " 3.8.10"
18-
1914 - name : Setup uv
2015 uses : astral-sh/setup-uv@v3
2116 with :
2217 enable-cache : true
2318
19+ - name : Setup Python
20+ run : uv python install 3.8.10
21+
22+ - name : Set up venv
23+ run : uv venv
2424 - name : Install Ruff via uv
2525 run : uv pip install ruff
2626
You can’t perform that action at this time.
0 commit comments