don't run tests on forks
MODIFY
.github/workflows/api.yml
.github/workflows/api.yml
@@ -13,6 +13,7 @@ env:
jobs:
macos:
+ if: github.repository == 'tensorflow/io' # Don't do this in forks
name: macOS ${{ matrix.python }} + ${{ matrix.version }}
runs-on: macos-latest
strategy:
@@ -53,6 +54,7 @@ jobs:
python -m pytest -s -v tests/test_filesystem.py
linux:
+ if: github.repository == 'tensorflow/io' # Don't do this in forks
name: Linux ${{ matrix.python }} + ${{ matrix.version }}
runs-on: ubuntu-20.04
strategy:
@@ -92,6 +94,7 @@ jobs:
python -m pytest -s -v tests/test_filesystem.py
windows:
+ if: github.repository == 'tensorflow/io' # Don't do this in forks
name: Windows ${{ matrix.python }} + ${{ matrix.version }}
runs-on: windows-latest
strategy:

MODIFY
.github/workflows/benchmarks.yml
.github/workflows/benchmarks.yml
@@ -7,6 +7,7 @@ on:
jobs:
macos:
+ if: github.repository == 'tensorflow/io' # Don't do this in forks
name: macOS ${{ matrix.python }} + ${{ matrix.version }}
runs-on: macos-latest
strategy:
@@ -40,6 +41,7 @@ jobs:
python -m pytest --benchmark-only -v --import-mode=append $(find . -type f \( -iname "test_*.py" ! \( -iname "test_*_v1.py" -o -iname "test_bigquery.py" \) \))
linux:
+ if: github.repository == 'tensorflow/io' # Don't do this in forks
name: Linux ${{ matrix.python }} + ${{ matrix.version }}
runs-on: ubuntu-20.04
strategy:

don't run tests on forks (#1406)