-
-
Notifications
You must be signed in to change notification settings - Fork 91
62 lines (53 loc) · 2.38 KB
/
latest-release-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Latest Release Test
on:
schedule:
- cron: "0 0 * * *"
jobs:
test-yutto-latest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
architecture: ["x64"]
name: Python ${{ matrix.python-version }} on ${{ matrix.architecture }} latest release test
steps:
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install tools
run: |
sudo apt update
sudo apt install ffmpeg
- name: Test yutto from source
run: |
uv cache clean
uvx --no-binary --pre yutto@latest -v
uvx --no-binary --pre yutto@latest -h
uvx --no-binary --pre yutto@latest https://www.bilibili.com/video/BV1AZ4y147Yg -w --no-progress
- name: Test yutto from wheel
run: |
uv cache clean
uvx --pre yutto@latest -v
uvx --pre yutto@latest -h
uvx --pre yutto@latest https://www.bilibili.com/video/BV1AZ4y147Yg -w --no-progress
- name: Prepare data for biliass
run: |
git clone https://github.com/yutto-dev/biliass-corpus.git --depth 1
- name: Test biliass from source
run: |
uv cache clean
uvx --no-binary --pre biliass@latest -v
uvx --no-binary --pre biliass@latest -h
uvx --no-binary --pre biliass@latest biliass-corpus/corpus/xml/18678311.xml -s 1920x1080 -f xml -o xml.ass
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
- name: Test biliass from wheel
run: |
uv cache clean
uvx --pre biliass@latest -v
uvx --pre biliass@latest -h
uvx --pre biliass@latest biliass-corpus/corpus/xml/18678311.xml -s 1920x1080 -f xml -o xml.ass
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