add tests

This commit is contained in:
Fangjun Kuang 2023-07-27 18:55:31 +08:00
parent a9bbed3c20
commit 92c8ade328
2 changed files with 38 additions and 5 deletions

View File

@ -2,10 +2,6 @@
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages
name: Build docker image
on:
push:
branches:
- docker
workflow_dispatch:
concurrency:
@ -13,7 +9,7 @@ concurrency:
cancel-in-progress: true
jobs:
build-doc:
build-docker-image:
name: build docker image
runs-on: ${{ matrix.os }}
strategy:

37
.github/workflows/run-docker-image.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Run docker image
on:
push:
branches:
- docker
workflow_dispatch:
concurrency:
group: run_docker_image-${{ github.ref }}
cancel-in-progress: true
jobs:
run-docker-image:
name: run docker
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
# refer to https://github.com/actions/checkout
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: k2fsa/icefall:torch1.13.0-cuda11.6
run: |
uname -a
python3 --version
python3 -m torch.utils.collect_env
python3 -m k2.version
python3 -c "import lhotse; print(lhotse.__version__)"
python3 -c "import kaldifeat; print(kaldifeat.__version__)"
nvcc --version