mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
![]() |
#!/usr/bin/env bash
|
||
|
cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT
|
||
|
|
||
|
set -exo pipefail
|
||
|
|
||
|
# option metacopy doesn't work on xfs
|
||
|
sed -i 's/nodev,metacopy=on/nodev/' /etc/containers/storage.conf
|
||
|
|
||
|
podman load --input /var/lib/containers/images.tar
|
||
|
|
||
|
cat > /ray/docker/ray-nest-container/test-Dockerfile << EOF
|
||
|
FROM rayproject/ray-nest-container:nightly-py36-cpu
|
||
|
RUN $HOME/anaconda3/bin/pip --no-cache-dir install pandas
|
||
|
EOF
|
||
|
|
||
|
podman build --cgroup-manager=cgroupfs -f /ray/docker/ray-nest-container/test-Dockerfile -t rayproject/ray-nest-container:nightly-py36-cpu-pandas .
|
||
|
|
||
|
export RAY_BACKEND_LOG_LEVEL=debug
|
||
|
"$HOME/anaconda3/bin/pip" install --no-cache-dir pytest
|
||
|
|
||
|
pushd /ray || true
|
||
|
bash ./ci/travis/install-bazel.sh --system
|
||
|
|
||
|
# shellcheck disable=SC2046
|
||
|
bazel test --test_timeout 60 --config=ci $(./scripts/bazel_export_options) \
|
||
|
--test_tag_filters=-kubernetes,-jenkins_only,worker-nest-container,-flaky \
|
||
|
python/ray/tests/... --test_output=all
|
||
|
|
||
|
#pytest python/ray/tests/test_actor_in_container.py -s
|
||
|
|
||
|
popd || true
|