mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 12:54:27 +08:00
254b1ec370
* Move some Java tests into ci.sh * Move C++ worker tests into ci.sh * Define run() * Prepare to move Python tests into ci.sh * Fix issues in install-dependencies.sh * Reload environment for GitHub Actions * Move wheels to ci.sh and fix related issues * Don't bypass failures in install-ray.sh anymore * Make CI a little quieter * Move linting into ci.sh * Add vitals test right after build * Fix os.uname() unavailability on Windows Co-authored-by: Mehrdad <noreply@github.com>
68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.name }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Useful info: https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
include:
|
|
- name: ubuntu
|
|
os: ubuntu-16.04
|
|
- name: windows
|
|
os: windows-2019
|
|
- name: macos
|
|
os: macos-10.15
|
|
env:
|
|
GITHUB_PULL_REQUEST: ${{ github.event.number }}
|
|
PYTHON: 3.6
|
|
TRAVIS_BUILD_DIR: ${{ github.workspace }}
|
|
TRAVIS_COMMIT: ${{ github.sha }}
|
|
#TRAVIS_PULL_REQUEST is defined in the scripts to account for "false"
|
|
steps:
|
|
- name: Pre-checkout system configuration
|
|
# We add -l to process .bashrc, but need -e -o pipefail for consistency with GitHub Actions's default behavior.
|
|
shell: bash -e -o pipefail -l {0}
|
|
run: |
|
|
# Note: only configure settings here that are required _before_ the repository is cloned (such as Git settings).
|
|
if [ ! -f ~/.profile ] && [ ! -f ~/.bash_profile ]; then # missing on some machines, but needed for ~/.bashrc
|
|
echo 'if [ -n "${BASH_VERSION}" ] && [ -f ~/.bashrc ]; then . ~/.bashrc; fi' >> ~/.profile
|
|
fi
|
|
git config --global core.symlinks true && git config --global core.autocrlf false
|
|
if command -v dpkg > /dev/null; then sudo dpkg-reconfigure debconf -f noninteractive -p high; fi
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# we need full history to diff against the original for linting etc.
|
|
fetch-depth: 0
|
|
- name: Run CI script
|
|
shell: bash -e -o pipefail -l {0}
|
|
env:
|
|
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
#LINUX_WHEELS: 1
|
|
LINT: 1
|
|
#MAC_WHEELS: 1
|
|
RAY_DEFAULT_BUILD: 1
|
|
WINDOWS_WHEELS: 1
|
|
run: |
|
|
. ./ci/travis/ci.sh init
|
|
. ./ci/travis/ci.sh lint
|
|
. ./ci/travis/ci.sh build
|
|
. ./ci/travis/ci.sh test_python
|
|
. ./ci/travis/ci.sh test_wheels
|
|
- name: Run Clang Include-What-You-Use
|
|
continue-on-error: true
|
|
if: runner.os == 'Linux'
|
|
shell: bash -e -o pipefail -l {0}
|
|
run: |
|
|
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 iwyu
|
|
bazel build \
|
|
--keep_going \
|
|
--config=iwyu \
|
|
"//:*"
|