Skip to content
New issue

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

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

Already on GitHub? # to your account

Add cluster ci #45

Merged
merged 2 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions .github/workflow_scripts/test_cluster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -ex

source $(dirname "$0")/env_setup.sh

# install_cloud_test

# python3 -m pytest -n 2 --junitxml=results.xml tests/unittests/cluster/
29 changes: 28 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,36 @@ jobs:
with:
submodule-to-test: timeseries
ag_version: '${{ matrix.AG_VERSION }}'
test_cluster:
needs: cloud_lint_check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v2
yinweisu marked this conversation as resolved.
Show resolved Hide resolved
- name: Checkout repository(Pull Request Target)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
yinweisu marked this conversation as resolved.
Show resolved Hide resolved
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Check if changes beside docs
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
other_than_docs:
- '!(docs/**)**'
- name: Test Cluster
if: steps.changes.outputs.other_than_docs == 'true'
run: |
chmod +x ./.github/workflow_scripts/test_cluster.sh
./.github/workflow_scripts/test_cluster.sh
build_doc:
if: ${{ github.event_name != 'schedule' }}
needs: [test_general_cloud, test_tabular_cloud, test_text_cloud, test_image_cloud, test_multimodal_cloud, test_timeseries_cloud]
needs: [test_general_cloud, test_tabular_cloud, test_text_cloud, test_image_cloud, test_multimodal_cloud, test_timeseries_cloud, test_cluster]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down