mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
Upgrade GitHub Actions
This commit is contained in:
parent
271445b2f2
commit
7f9a3dd507
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -11,10 +11,10 @@ jobs:
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Fetch base branch
|
- name: Fetch base branch
|
||||||
run: git fetch origin ${{ github.base_ref }}
|
run: git fetch origin ${{ github.base_ref }}
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
architecture: x64
|
architecture: x64
|
||||||
@ -23,7 +23,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||||
- name: pip/pre-commit cache
|
- name: pip/pre-commit cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.pip-cache.outputs.dir }}
|
${{ steps.pip-cache.outputs.dir }}
|
||||||
@ -67,9 +67,9 @@ jobs:
|
|||||||
pytorch-version: 2.5.0
|
pytorch-version: 2.5.0
|
||||||
numpy-requirement: "'numpy'"
|
numpy-requirement: "'numpy'"
|
||||||
steps:
|
steps:
|
||||||
- uses: conda-incubator/setup-miniconda@v2
|
- uses: conda-incubator/setup-miniconda@v3
|
||||||
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
|
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
|
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
|
||||||
- run: pip3 install .["dev"] ${{ matrix.numpy-requirement }} torch==${{ matrix.pytorch-version }}+cpu --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple
|
- run: pip3 install .["dev"] ${{ matrix.numpy-requirement }} torch==${{ matrix.pytorch-version }}+cpu --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple
|
||||||
- run: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'
|
- run: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user