Run tests automatically.

This commit is contained in:
Fangjun Kuang 2022-06-03 10:37:09 +08:00
parent 20ee9272b4
commit 2adf8a3709
12 changed files with 8 additions and 34 deletions

View File

@ -20,8 +20,6 @@ name: build_conda_ubuntu_cpu
on:
push:
branches:
- nightly-test
tags:
- '*'

View File

@ -20,8 +20,6 @@ name: build_conda_ubuntu_cuda
on:
push:
branches:
- nightly-test
tags:
- '*'

View File

@ -17,10 +17,6 @@
name: Nightly tests macos cpu
on:
push:
branches:
- nightly-test
schedule:
# minute (0-59)
# hour (0-23)

View File

@ -73,13 +73,10 @@ jobs:
python3 -c "import sys; print(sys.version)"
which python3
- name: Install kaldifeat
- name: Install kaldifeat and run tests
shell: bash -l {0}
run: |
conda install -y -c kaldifeat -c pytorch cpuonly pytorch=${{ matrix.torch }} kaldifeat
conda install -y -c kaldifeat -c pytorch cpuonly pytorch=${{ matrix.torch }} kaldifeat python=${{ matrix.python-version }}
- name: Run tests
shell: bash
run: |
cd kaldifeat/python/tests
make test

View File

@ -73,13 +73,10 @@ jobs:
python3 -c "import sys; print(sys.version)"
which python3
- name: Install kaldifeat
- name: Install kaldifeat and run tests
shell: bash -l {0}
run: |
conda install -y -c kaldifeat -c pytorch -c conda-forge pytorch=${{ matrix.torch }} cudatoolkit=${{ matrix.cuda }} kaldifeat
conda install -y -c kaldifeat -c pytorch -c conda-forge pytorch=${{ matrix.torch }} cudatoolkit=${{ matrix.cuda }} kaldifeat python=${{ matrix.python-version }}
- name: Run tests
shell: bash
run: |
cd kaldifeat/python/tests
make test

View File

@ -17,10 +17,6 @@
name: Nightly tests ubuntu pip cpu
on:
push:
branches:
- nightly-test
schedule:
# minute (0-59)
# hour (0-23)

View File

@ -17,10 +17,6 @@
name: Nightly tests ubuntu pip cuda
on:
push:
branches:
- nightly-test
schedule:
# minute (0-59)
# hour (0-23)

View File

@ -17,10 +17,6 @@
name: Nightly tests windows pip cpu
on:
push:
branches:
- nightly-test
schedule:
# minute (0-59)
# hour (0-23)

View File

@ -66,7 +66,7 @@ jobs:
run: |
python3 -m pip install -qq --upgrade pip
python3 -m pip install -qq wheel twine typing_extensions soundfile numpy
python3 -m pip install -qq torch==${{ matrix.torch }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
python3 -m pip install -qq torch==${{ matrix.torch }} -f https://download.pytorch.org/whl/torch_stable.html
python3 -c "import torch; print('torch version:', torch.__version__)"

View File

@ -20,7 +20,7 @@ on:
push:
branches:
- master
- nightly-test
pull_request:
branches:
- master

View File

@ -20,7 +20,7 @@ on:
push:
branches:
- master
- nightly-test
pull_request:
branches:
- master

View File

@ -20,7 +20,7 @@ on:
push:
branches:
- master
- nightly-test
pull_request:
branches:
- master