Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI workflow and package testing workflow #25

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 7 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Python package CI

name: Continuous Integration
on:
push:
branches: [main]
Expand All @@ -15,12 +14,11 @@ on:

jobs:
build:
runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, 3.10, 3.11]
torch-version: [2.1.0, 2.1.1]
python-version: ['3.10', '3.11']
fail-fast: false

steps:
Expand Down Expand Up @@ -59,28 +57,11 @@ jobs:
- name: Update pip
run: python -m pip install --upgrade pip

- name: Install local package with dev and readers dependencies
run: >
pip install -e .[dev]

- name: Check styling with pre-commit
run: |
pre-commit install
pre-commit run --all-files

- name: Install PyTorch on Linux and Windows
if: >
matrix.operating-system == 'ubuntu-latest' ||
matrix.operating-system == 'windows-latest'
run: >
pip install torch==${{ matrix.torch-version }}+cpu
-f https://download.pytorch.org/whl/torch_stable.html

- name: Install PyTorch on MacOS
if: matrix.operating-system == 'macos-latest'
run: pip install torch==${{ matrix.torch-version }}
- name: Install PyTorch on Linux and Windows

- name: Install whisperplus package from local setup.py
run: >
pip install -e .

- name: Unittest whisperplus
run: |
python -m unittest
36 changes: 10 additions & 26 deletions .github/workflows/package_testing.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Package Testing
name: Package CI

on:
push:
branches: [ master ]
branches: [main]

pull_request:
branches: [ master ]
branches: [main]

jobs:
build:
runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest

strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
torch-version: [2.1.0, 2.1.1]
python-version: ['3.10', '3.11']
fail-fast: false

steps:
Expand Down Expand Up @@ -53,27 +53,11 @@ jobs:
- name: Update pip
run: python -m pip install --upgrade pip

- name: Install local package with dev and readers dependencies
run: >
pip install -e .[dev]

- name: Check styling with pre-commit
run: |
pre-commit install
pre-commit run --all-files

- name: Install PyTorch on Linux and Windows
if: >
matrix.operating-system == 'ubuntu-latest' ||
matrix.operating-system == 'windows-latest'
run: >
pip install torch==${{ matrix.torch-version }}+cpu
-f https://download.pytorch.org/whl/torch_stable.html

- name: Install PyTorch on MacOS
if: matrix.operating-system == 'macos-latest'
run: pip install torch==${{ matrix.torch-version }}

- name: Install latest whisperplus package
run: >
pip install --upgrade --force-reinstall whisperplus

- name: Unittest whisperplus
run: |
python -m unittest
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gradio==4.7.1
moviepy==1.0.3
numpy==1.26.2
numpy
pyannote.audio==3.1.0
pytube==15.0.0
Requests==2.31.0
Expand Down