Skip to content

Commit c59289c

Browse files
authored
Run linux tests before building the wheel. (#1212)
* Run linux tests before building the wheel.
1 parent 94875b0 commit c59289c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ env:
2020
BAZEL_VERSION: 1.1.0
2121

2222
jobs:
23-
manylinux-cpu-release-test:
24-
name: Test release on Ubuntu
25-
runs-on: ubuntu-18.04
26-
steps:
27-
- uses: actions/checkout@v2
28-
- name: Release test Ubuntu
29-
run: |
30-
set -x -e
31-
bash tools/run_cpu_tests.sh
3223
release-wheel:
3324
name: Build release wheels
3425
runs-on: ${{ matrix.os }}
@@ -83,7 +74,7 @@ jobs:
8374
8475
upload-wheels:
8576
name: Publish wheels to PyPi
86-
needs: [release-wheel, test-release-wheel, manylinux-cpu-release-test]
77+
needs: [release-wheel, test-release-wheel]
8778
runs-on: ubuntu-18.04
8879
strategy:
8980
matrix:

tools/ci_build/builds/release_linux.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ python3 -m pip install --upgrade setuptools
4343
python3 --version
4444
python3 ./configure.py
4545

46+
## Run bazel test command. Double test timeouts to avoid flakes.
47+
bazel test -c opt -k \
48+
--jobs=auto --test_timeout 300,450,1200,3600 \
49+
--test_output=errors --local_test_jobs=8 \
50+
--crosstool_top=//build_deps/toolchains/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
51+
//tensorflow_addons/...
52+
4653
# Build
4754
bazel build \
4855
-c opt \

0 commit comments

Comments
 (0)