Skip to content

Commit 763f54b

Browse files
authored
ci: add pip check action (#307)
fix #295
1 parent 13922cf commit 763f54b

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python Dependency Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
dependency-check:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.9', '3.10', '3.11', '3.12']
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
if [ -f requirements.txt ]; then
29+
pip install -r requirements.txt
30+
fi
31+
continue-on-error: false

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ blrec==2.0.0b4
22
ffmpeg_python==0.2.0
33
librosa==0.9.1
44
more_itertools==10.6.0
5-
numba==0.55.1
6-
numpy==1.21.6
5+
numba>=0.55.1
6+
numpy>=1.21.6, <1.26.4
77
pysrt==1.1.2
88
six==1.16.0
99
tiktoken==0.4.0
10-
torch==1.11.0
10+
torch>=1.11.0, <2.3.0
1111
triton==3.1.0
1212
zhconv==1.4.3
1313
Pillow>=5.2.0

0 commit comments

Comments
 (0)