Skip to content

Commit 5ba77cb

Browse files
committed
Updated actions with matrix for all versions
1 parent 280f272 commit 5ba77cb

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/build-and-test.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ jobs:
113113
needs: [ swig_Linux ]
114114
runs-on: ubuntu-20.04
115115
if: ${{ github.event_name == 'pull_request' }}
116+
strategy:
117+
matrix:
118+
python-version: [3.6, 3.7, 3.8, 3.9]
116119
steps:
117120
- uses: actions/checkout@v2
118121
with:
119122
fetch-depth: 0
120123
- uses: actions/setup-python@v2
121124
with:
122-
python-version: 3.6
125+
python-version: ${{ matrix.python-version }}
123126
- run: |
124127
python --version
125128
pip --version
@@ -135,7 +138,7 @@ jobs:
135138
- id: get_numpy
136139
uses: ./.github/actions/numpy_vers
137140
with:
138-
pyver: 3.6
141+
pyver: ${{ matrix.python-version }}
139142
- name: Make decoder package
140143
run: |
141144
NUMPY_BUILD_VERSION=${{ steps.get_numpy.outputs.build_version }} \
@@ -651,13 +654,16 @@ jobs:
651654
needs: [ swig_macOS ]
652655
runs-on: macos-10.15
653656
if: ${{ github.event_name == 'pull_request' }}
657+
strategy:
658+
matrix:
659+
python-version: [3.6.8, 3.7.9, 3.8.8, 3.9.2]
654660
steps:
655661
- uses: actions/checkout@v2
656662
with:
657663
fetch-depth: 0
658664
- uses: ./.github/actions/install-python-upstream
659665
with:
660-
version: 3.6.8
666+
version: ${{ matrix.python-version }}
661667
- run: |
662668
python --version
663669
pip --version
@@ -673,7 +679,7 @@ jobs:
673679
- id: get_numpy
674680
uses: ./.github/actions/numpy_vers
675681
with:
676-
pyver: 3.6.8
682+
pyver: ${{ matrix.python-version }}
677683
- name: Make decoder package
678684
run: |
679685
NUMPY_BUILD_VERSION=${{ steps.get_numpy.outputs.build_version }} \
@@ -1146,6 +1152,9 @@ jobs:
11461152
name: "Win|Build CTC decoder Python package"
11471153
needs: [swig_Windows_crosscompiled]
11481154
runs-on: windows-2019
1155+
strategy:
1156+
matrix:
1157+
python-version: [3.6, 3.7, 3.8, 3.9]
11491158
steps:
11501159
- name: Switch git-bash shell to MSYS2 shell by adding MSYS2 path to PATH front
11511160
run: echo "$MSYS2_SHELL_PATH" >> $GITHUB_PATH
@@ -1163,7 +1172,7 @@ jobs:
11631172
fetch-depth: 0
11641173
- uses: actions/setup-python@v2
11651174
with:
1166-
python-version: 3.7.9
1175+
python-version: ${{ matrix.python-version }}
11671176
- run: |
11681177
python --version
11691178
python -m pip --version
@@ -1212,6 +1221,9 @@ jobs:
12121221
name: "Win|Build TensorFlow (opt)"
12131222
needs: tensorflow_opt-Windows
12141223
runs-on: windows-2019
1224+
strategy:
1225+
matrix:
1226+
python-version: [3.6, 3.7, 3.8, 3.9]
12151227
steps:
12161228
- run: true
12171229
if: needs.tensorflow_opt-Windows.outputs.status == 'found'
@@ -1229,7 +1241,7 @@ jobs:
12291241
if: needs.tensorflow_opt-Windows.outputs.status == 'missing'
12301242
- uses: actions/setup-python@v2
12311243
with:
1232-
python-version: 3.7.9
1244+
python-version: ${{ matrix.python-version }}
12331245
if: needs.tensorflow_opt-Windows.outputs.status == 'missing'
12341246
- uses: actions/checkout@v2
12351247
with:
@@ -1314,7 +1326,7 @@ jobs:
13141326
build-flavor: ["tf", "tflite"]
13151327
# Try to keep Python versions in sync with cached versions to speed things up:
13161328
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
1317-
python-version: [3.6.8, 3.7.9, 3.8.8, 3.9.4]
1329+
python-version: [3.6, 3.7, 3.8, 3.9]
13181330
steps:
13191331
- name: Switch git-bash shell to MSYS2 shell by adding MSYS2 path to PATH front
13201332
run: echo "$MSYS2_SHELL_PATH" >> $GITHUB_PATH
@@ -1490,7 +1502,7 @@ jobs:
14901502
matrix:
14911503
# Try to keep Python versions in sync with cached versions to speed things up:
14921504
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
1493-
python-version: [3.6.8, 3.7.9, 3.8.8, 3.9.4]
1505+
python-version: [3.6, 3.7, 3.8, 3.9]
14941506
build-flavor: ["tf", "tflite"]
14951507
models: ["test", "prod"]
14961508
bitrate: ["8k", "16k"]

0 commit comments

Comments
 (0)