Skip to content

Commit bdf2e50

Browse files
authored
Merge pull request #38 from chenjintang-shrimp/nuitka-packaging
chore: 更新工作流以令其能正常工作
2 parents 5fcbfbb + 93b2391 commit bdf2e50

3 files changed

Lines changed: 15 additions & 20 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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

@@ -30,12 +30,6 @@ jobs:
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

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7+
workflow_dispatch:
78

89
jobs:
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

.github/workflows/ruff.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77

88
jobs:
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

0 commit comments

Comments
 (0)