Skip to content

Commit 3d03b34

Browse files
authored
👷 ci: add latest release test for biliass (#366)
1 parent adb893d commit 3d03b34

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

.github/workflows/latest-release-test.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
architecture: ["x64"]
1414
name: Python ${{ matrix.python-version }} on ${{ matrix.architecture }} latest release test
1515
steps:
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v3
18+
1619
- name: Install python
1720
uses: actions/setup-python@v5
1821
with:
@@ -24,12 +27,36 @@ jobs:
2427
sudo apt update
2528
sudo apt install ffmpeg
2629
27-
- name: Install yutto latest
30+
- name: Test yutto from source
31+
run: |
32+
uv cache clean
33+
uvx --no-binary --pre yutto@latest -v
34+
uvx --no-binary --pre yutto@latest -h
35+
uvx --no-binary --pre yutto@latest https://www.bilibili.com/video/BV1AZ4y147Yg -w --no-progress
36+
37+
- name: Test yutto from wheel
38+
run: |
39+
uv cache clean
40+
uvx --pre yutto@latest -v
41+
uvx --pre yutto@latest -h
42+
uvx --pre yutto@latest https://www.bilibili.com/video/BV1AZ4y147Yg -w --no-progress
43+
44+
- name: Prepare data for biliass
45+
run: |
46+
git clone https://github.com/yutto-dev/biliass-corpus.git --depth 1
47+
48+
- name: Test biliass from source
2849
run: |
29-
pip install yutto
50+
uv cache clean
51+
uvx --no-binary --pre biliass@latest -v
52+
uvx --no-binary --pre biliass@latest -h
53+
uvx --no-binary --pre biliass@latest biliass-corpus/corpus/xml/18678311.xml -s 1920x1080 -f xml -o xml.ass
54+
uvx --no-binary --pre biliass@latest biliass-corpus/corpus/protobuf/18678311-0.pb biliass-corpus/corpus/protobuf/18678311-1.pb biliass-corpus/corpus/protobuf/18678311-2.pb biliass-corpus/corpus/protobuf/18678311-3.pb -s 1920x1080 -f protobuf -o protobuf.ass
3055
31-
- name: Test yutto
56+
- name: Test biliass from wheel
3257
run: |
33-
yutto -v
34-
yutto -h
35-
yutto https://www.bilibili.com/video/BV1AZ4y147Yg -w
58+
uv cache clean
59+
uvx --pre biliass@latest -v
60+
uvx --pre biliass@latest -h
61+
uvx --pre biliass@latest biliass-corpus/corpus/xml/18678311.xml -s 1920x1080 -f xml -o xml.ass
62+
uvx --pre biliass@latest biliass-corpus/corpus/protobuf/18678311-0.pb biliass-corpus/corpus/protobuf/18678311-1.pb biliass-corpus/corpus/protobuf/18678311-2.pb biliass-corpus/corpus/protobuf/18678311-3.pb -s 1920x1080 -f protobuf -o protobuf.ass

0 commit comments

Comments
 (0)