Skip to content

Latest Release Test #1249

Latest Release Test

Latest Release Test #1249

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