From 763f54ba8bfb9db1980ace4da0b0cf23dd25ea16 Mon Sep 17 00:00:00 2001 From: John Howe <89397553+timerring@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:00:21 +0800 Subject: [PATCH] ci: add pip check action (#307) fix #295 --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ requirements.txt | 6 +++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7c51cc3 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a4a205f..52f8ae8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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