ci: add pip check action (#307)

fix #295
This commit is contained in:
John Howe
2025-04-28 11:00:21 +08:00
committed by GitHub
parent 13922cf96b
commit 763f54ba8b
2 changed files with 34 additions and 3 deletions

31
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Python Dependency Check
on:
push:
branches:
- main
pull_request:
jobs:
dependency-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
continue-on-error: false

View File

@@ -2,12 +2,12 @@ blrec==2.0.0b4
ffmpeg_python==0.2.0
librosa==0.9.1
more_itertools==10.6.0
numba==0.55.1
numpy==1.21.6
numba>=0.55.1
numpy>=1.21.6, <1.26.4
pysrt==1.1.2
six==1.16.0
tiktoken==0.4.0
torch==1.11.0
torch>=1.11.0, <2.3.0
triton==3.1.0
zhconv==1.4.3
Pillow>=5.2.0