Recently Written · git

desktop-subtitle-replay

git clone https://github.com/equwal/desktop-subtitle-replay

Log | Files | Refs


.github/workflows/ci.yml (876 bytes)

1 name: ci
2 
3 on:
4   push:
5     branches: [main]
6   pull_request:
7   workflow_dispatch:
8 
9 jobs:
10   check:
11     runs-on: windows-latest
12     strategy:
13       fail-fast: false
14       matrix:
15         python-version: ["3.10", "3.11", "3.12"]
16     steps:
17       - uses: actions/checkout@v4
18 
19       - uses: actions/setup-python@v5
20         with:
21           python-version: ${{ matrix.python-version }}
22 
23       - name: Install dependencies
24         run: |
25           python -m pip install --upgrade pip
26           pip install -r requirements.txt
27 
28       - name: Byte-compile
29         run: python -m compileall -q livecap.py bench.py subtitle.py
30 
31       - name: CLI smoke check
32         run: |
33           python livecap.py --help
34           python bench.py --help
35           python subtitle.py --help
36 
37       - name: Tests
38         run: |
39           python tests/test_smoke.py
40           python tests/test_subtitle.py