forked from alibaba/GraphScope
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.73 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
name: GraphScope Nightly Build CI
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-20.04, macos-10.15]
steps:
- uses: actions/checkout@v2
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
/bin/bash ${GITHUB_WORKSPACE}/scripts/install_deps.sh --dev --grape-jdk --verbose
- name: Build GraphScope
run: |
source ${HOME}/.graphscope_env
make BUILD_TYPE=debug
- 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
make unittest
- name: Upload Coverage
uses: codecov/codecov-action@v2
if: matrix.os == 'ubuntu-20.04'
with:
file: ./python/coverage.xml
fail_ci_if_error: true