[CI] Add path filtering for job or step, separate NetworkX python tests
@@ -33,9 +33,6 @@ jobs:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-vineyard:v0.3.6
options:
--shm-size 4096m
- strategy:
- matrix:
- networkx: [ON, OFF]
steps:
- uses: actions/checkout@v2.3.2
@@ -96,19 +93,13 @@ jobs:
strip /opt/vineyard/lib64/* || true
tar -cf vineyard.tar /opt/vineyard
- sudo mkdir -p /opt/graphscope
+ pushd ${GITHUB_WORKSPACE}
+ make gae BUILD_TEST=ON
sudo chown -R $(id -u):$(id -g) /opt/graphscope
-
- mkdir analytical_engine/build
- cd analytical_engine/build
- cmake .. -DCMAKE_INSTALL_PREFIX=/opt/graphscope \
- -DNETWORKX=${{ matrix.networkx }}
- make -j`nproc`
- make install
- cd ${GITHUB_WORKSPACE}
cp k8s/kube_ssh /opt/graphscope/bin/kube_ssh
cp k8s/pre_stop.py /opt/graphscope/bin/pre_stop.py
tar -cf gae.tar /opt/graphscope
+ popd
- name: Run GAE Tests
run: |
@@ -120,7 +111,6 @@ jobs:
../test/app_tests.sh --test_dir ${GITHUB_WORKSPACE}/gstest
- name: Upload Artifact
- if: matrix.networkx == 'ON'
uses: actions/upload-artifact@v2
with:
name: gae-${{ github.sha }}
@@ -266,11 +256,18 @@ jobs:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-runtime:latest
options:
--shm-size 4096m
- strategy:
- matrix:
- networkx: [ON, OFF]
steps:
- uses: actions/checkout@v2.3.2
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: |
+ networkx:
+ - 'analytical_engine/apps/**'
+ - 'analytical_engine/frame/**'
+ - 'analytical_engine/core/**'
+ - 'python/graphscope/nx/**'
+
- uses: actions/download-artifact@v2
@@ -316,8 +313,7 @@ jobs:
if: false
uses: mxschmitt/action-tmate@v2
- - name: App Test with Expr Off
- if: matrix.networkx == 'OFF'
+ - name: GraphScope python unittest
run: |
export GRAPHSCOPE_HOME='/opt/graphscope'
export GS_TEST_DIR='/home/graphscope/gstest'
@@ -326,14 +322,13 @@ jobs:
--cov-report=xml --cov-report=term --exitfirst -s -v tests/unittest/
- name: Upload Coverage
- if: matrix.networkx == 'OFF'
uses: codecov/codecov-action@v1.0.5
with:
file: ./python/coverage.xml
fail_ci_if_error: true
- - name: App Test with Expr On
- if: matrix.networkx == 'ON'
+ - name: GraphScope NetworkX test
+ if: steps.filter.outputs.networkx == 'true'
run: |
export GRAPHSCOPE_HOME='/opt/graphscope'
export GS_TEST_DIR='/home/graphscope/gstest'
