forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (80 loc) · 2.41 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
check_skip:
runs-on: ubuntu-18.04
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"
linter_and_test:
runs-on: ${{ matrix.os }}
needs: check_skip
strategy:
max-parallel: 20
matrix:
# os: [ubuntu-16.04, ubuntu-18.04]
os: [ubuntu-18.04]
python-version: [3.7, 3.8]
pytorch-version: [1.0.1, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.1, 1.6.0, 1.7.1]
chainer-version: [6.0.0]
# NOTE(kamo): Conda is tested by Circle-CI
use-conda: [false]
exclude:
# Exclude python=3.8 tests except for latest pytorch
- python-version: 3.8
pytorch-version: 1.0.1
- python-version: 3.8
pytorch-version: 1.1.0
- python-version: 3.8
pytorch-version: 1.2.0
- python-version: 3.8
pytorch-version: 1.3.1
- python-version: 3.8
pytorch-version: 1.4.0
- python-version: 3.8
pytorch-version: 1.5.1
- python-version: 3.8
pytorch-version: 1.6.0
steps:
- uses: actions/checkout@master
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-${{ hashFiles('**/setup.py') }}
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y cmake g++-7 libsndfile1-dev bc sox
- name: install espnet
env:
ESPNET_PYTHON_VERSION: ${{ matrix.python-version }}
TH_VERSION: ${{ matrix.pytorch-version }}
CHAINER_VERSION: ${{ matrix.chainer-version }}
USE_CONDA: ${{ matrix.use-conda }}
CC: gcc-7
CXX: g++-7
run: |
./ci/install.sh
- name: test shell
run: |
./ci/test_shell.sh
- name: test python
run: |
./ci/test_python.sh
- name: install kaldi
run: |
./ci/install_kaldi.sh
- name: test integration
run: |
./ci/test_integration.sh
- uses: codecov/codecov-action@v1