-
Notifications
You must be signed in to change notification settings - Fork 1
149 lines (127 loc) · 3.9 KB
/
pr.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: Build, Lint, and Test
on:
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
workflow_call:
jobs:
build-and-lint-test-bare-metal:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
with:
python-version: '3.x'
cache: true
- name: Install dependencies
run: pdm install
- name: Lint
run: pdm run lint
- name: Build and Install NebulaGraph-Lite
run: pip3 install .
- name: Dry run `nebulagraph start`
run: nebulagraph --debug start --cleanup
# error: Could not open the file: /sys/fs/cgroup/memory.max, seems cgroup version detection failed here
# let's skip this test for now
# e2e-bare-metal:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-20.04, ubuntu-latest]
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Run Build and Install
# run: |
# echo "Running tests on ${{ matrix.os }}"
# pip3 install .
# - name: Dry run `nebulagraph start`
# run: nebulagraph --debug start --cleanup
e2e-docker:
runs-on: ubuntu-22.04
strategy:
matrix:
image: ["ubuntu:20.04", "rockylinux:9", "ubuntu:latest"]
container:
image: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
else
yum update -y && yum install python3-pip which -y
fi
- name: Install NebulaGraph-Lite
run: pip3 install .
- name: Run NebulaGraph-Lite in container
run: nebulagraph --debug --container start
e2e-jupyter-notebook:
runs-on: ubuntu-22.04
strategy:
matrix:
image: ["ubuntu:20.04"]
container:
image: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: |
if grep -qEi "debian|buntu" /etc/*release; then
apt-get update && apt-get install python3-pip curl -y
else
yum update -y && yum install python3-pip which -y
fi
- name: Install NebulaGraph-Lite
run: pip3 install .
- name: Run Jupyter e2e test
run: |
pip3 install notebook nbconvert
jupyter nbconvert --to notebook --execute tests/e2e/jupyter/jupyter_test.ipynb
# I give up on this one, it's too hard to get it working to emulate the modelscope environment...
#
# e2e-modelscope-notebook:
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# image: ["ubuntu:20.04"]
# container:
# image: ${{ matrix.image }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Install Dependencies
# run: |
# if grep -qEi "debian|buntu" /etc/*release; then
# apt-get update && apt-get install python3-pip curl -y
# else
# yum update -y && yum install python3-pip which -y
# fi
# - name: Install NebulaGraph-Lite
# run: pip3 install .
# - name: Run ModelScope e2e test
# run: |
# pip3 install notebook nbconvert modelscope
# jupyter nbconvert --to notebook --execute tests/e2e/jupyter/modelscope_test.ipynb
# e2e-alpine:
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# image: ["alpine:3.14", "alpine:latest"]
# container:
# image: ${{ matrix.image }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Install Dependencies
# run: |
# apk add --no-cache python3 py3-pip curl pipx py3-psutil
# - name: Install NebulaGraph-Lite
# run: pip3 install --break-system-packages .
# - name: Run NebulaGraph-Lite in container
# run: nebulagraph --debug --container start