-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (77 loc) · 2.16 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
name: Build, Lint, and Test
on:
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
workflow_call:
jobs:
build-and-lint-test:
runs-on: ubuntu-22.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
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-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