Skip to content

Commit b4ffeb0

Browse files
committed
ci: speed up semi and ptm
1 parent 6b5a724 commit b4ffeb0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,14 @@ jobs:
230230
with:
231231
repository: cmusphinx/an4
232232
path: an4
233-
- name: Train AN4 (installed)
233+
- name: Train AN4 (semi)
234234
run: |
235235
cd an4
236236
sphinxtrain -t an4 setup
237237
perl -i -pe 's/^(\$CFG_HMM_TYPE.*cont)/#$1/' etc/sphinx_train.cfg
238238
perl -i -pe 's/^#(\$CFG_HMM_TYPE.*semi)/$1/' etc/sphinx_train.cfg
239+
perl -i -pe 's/(DENSITIES.*= )\d+/${1}16/' etc/sphinx_train.cfg
240+
perl -i -pe 's/(MAX_ITERATIONS.*= )\d+/${1}5/' etc/sphinx_train.cfg
239241
sphinxtrain run
240242
- name: Archive AN4 logs
241243
if: success() || failure()
@@ -265,12 +267,14 @@ jobs:
265267
with:
266268
repository: cmusphinx/an4
267269
path: an4
268-
- name: Train AN4 (installed)
270+
- name: Train AN4 (PTM)
269271
run: |
270272
cd an4
271273
sphinxtrain -t an4 setup
272274
perl -i -pe 's/^(\$CFG_HMM_TYPE.*cont)/#$1/' etc/sphinx_train.cfg
273275
perl -i -pe 's/^#(\$CFG_HMM_TYPE.*ptm)/$1/' etc/sphinx_train.cfg
276+
perl -i -pe 's/(DENSITIES.*= )\d+/${1}16/' etc/sphinx_train.cfg
277+
perl -i -pe 's/(MAX_ITERATIONS.*= )\d+/${1}5/' etc/sphinx_train.cfg
274278
sphinxtrain run
275279
- name: Archive AN4 logs
276280
if: success() || failure()

0 commit comments

Comments
 (0)