Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 3e1afe0

Browse files
author
Alexandre Lissy
committed
Fix #3593: Limit tests to PR
1 parent 6af0ce8 commit 3e1afe0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/macOS-amd64.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
name: "Build CTC decoder Python package for testing"
5656
needs: [ swig_macOS ]
5757
runs-on: macos-10.15
58+
if: ${{ github.event_name == 'pull_request' }}
5859
steps:
5960
- uses: actions/checkout@v2
6061
with:
@@ -87,6 +88,7 @@ jobs:
8788
name: "Train a test model"
8889
needs: [ "build-ctc-decoder" ]
8990
runs-on: macos-10.15
91+
if: ${{ github.event_name == 'pull_request' }}
9092
strategy:
9193
matrix:
9294
bitrate: ["8k", "16k"]
@@ -328,6 +330,7 @@ jobs:
328330
name: "Test C++ binary on macOS"
329331
runs-on: macos-10.15
330332
needs: [ build-lib_macOS, train-test-model ]
333+
if: ${{ github.event_name == 'pull_request' }}
331334
strategy:
332335
matrix:
333336
build-flavor: ["tf", "tflite"]
@@ -368,6 +371,7 @@ jobs:
368371
name: "Test Python bindings on macOS"
369372
runs-on: macos-10.15
370373
needs: [ build-python-macOS, train-test-model ]
374+
if: ${{ github.event_name == 'pull_request' }}
371375
strategy:
372376
matrix:
373377
python-version: [3.6.8, 3.7.9, 3.8.8, 3.9.2]
@@ -412,6 +416,7 @@ jobs:
412416
name: "Test NodeJS bindings on macOS"
413417
runs-on: macos-10.15
414418
needs: [ build-nodejs-macOS, train-test-model ]
419+
if: ${{ github.event_name == 'pull_request' }}
415420
strategy:
416421
matrix:
417422
nodejs-version: [10, 11, 12, 13, 14, 15]
@@ -456,6 +461,7 @@ jobs:
456461
name: "Test ElectronJS bindings on macOS"
457462
runs-on: macos-10.15
458463
needs: [ build-nodejs-macOS, train-test-model ]
464+
if: ${{ github.event_name == 'pull_request' }}
459465
strategy:
460466
matrix:
461467
electronjs-version: [5.0.13, 6.0.12, 6.1.7, 7.0.1, 7.1.8, 8.0.1, 9.0.1, 9.1.0, 9.2.0, 10.0.0, 10.1.0, 11.0.0, 12.0.0]

0 commit comments

Comments
 (0)