Skip to content

Run linux tests before building the wheel. #1212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ env:
BAZEL_VERSION: 1.1.0

jobs:
manylinux-cpu-release-test:
name: Test release on Ubuntu
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Release test Ubuntu
run: |
set -x -e
bash tools/run_cpu_tests.sh
release-wheel:
name: Build release wheels
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -83,7 +74,7 @@ jobs:

upload-wheels:
name: Publish wheels to PyPi
needs: [release-wheel, test-release-wheel, manylinux-cpu-release-test]
needs: [release-wheel, test-release-wheel]
runs-on: ubuntu-18.04
strategy:
matrix:
Expand Down
7 changes: 7 additions & 0 deletions tools/ci_build/builds/release_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ python3 -m pip install --upgrade setuptools
python3 --version
python3 ./configure.py

## Run bazel test command. Double test timeouts to avoid flakes.
bazel test -c opt -k \
--jobs=auto --test_timeout 300,450,1200,3600 \
--test_output=errors --local_test_jobs=8 \
--crosstool_top=//build_deps/toolchains/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
//tensorflow_addons/...

# Build
bazel build \
-c opt \
Expand Down