forked from alibaba/GraphScope
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (68 loc) · 2.36 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: GraphScope Nightly Build CI
# on: [push, pull_request]
on:
workflow_dispatch:
schedule:
# The notifications for scheduled workflows are sent to the user who
# last modified the cron syntax in the workflow file.
# Trigger the workflow at 03:00(CST) every day.
- cron: '00 19 * * *'
jobs:
nightly-test:
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash --noprofile --norc -eo pipefail {0}
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies of GraphScope
run: |
# Due to an observation of changing hostname in github runners,
# append 127.0.0.1 to etc/hosts to avoid DNS lookup.
r=`cat /etc/hosts | grep $(hostname) || true`
if [ -z "${r}" ];then export hn=$(hostname); sudo -E bash -c 'echo "127.0.0.1 ${hn}" >> /etc/hosts'; fi
cat /etc/hosts
if [ "$RUNNER_OS" == "macOS" ]; then
brew update
# pushd $(brew --repo homebrew/core)
# # fixed openmpi version 4.1.4
# git checkout d2d8d2251eb3ce044993a79e5ad816ed3356bc36
# popd
brew install bash
alias bash=$(brew --prefix)/bin/bash
fi
sudo mkdir /opt/graphscope
sudo chown -R $(id -u):$(id -g) /opt/graphscope
./gs install-deps dev --v6d-version v0.15.0
- name: Setup tmate session
if: false
uses: mxschmitt/action-tmate@v2
- name: Build GraphScope
run: |
. ${HOME}/.graphscope_env
# fixes nightly CI
export PATH=/Users/runner/Library/Python/3.11/bin:$PATH
make install INSTALL_PREFIX=/opt/graphscope
- name: Run Python Test
if: matrix.os == 'ubuntu-20.04'
env:
FULL_TEST_SUITE: ON
GS_TEST_DIR: ${{ github.workspace }}/gstest
run: |
# download dataset
git clone -b master --single-branch --depth=1 https://github.com/7br/gstest.git ${GS_TEST_DIR}
# run test
. ${HOME}/.graphscope_env
make unittest
- name: Upload Coverage
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-20.04'
with:
file: ./python/coverage.xml
fail_ci_if_error: true