-
Notifications
You must be signed in to change notification settings - Fork 320
58 lines (54 loc) · 1.85 KB
/
integration-test.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
# This workflow runs integration test related jobs for OpenMLDB
name: integration-test
on:
push:
branches:
- main
paths:
- "src/**"
- "java/openmldb-taskmanager/**"
- "release/**"
- "test/integration-test/openmldb-test-python/**"
tags:
- v*
pull_request:
paths:
- "src/**"
- "java/openmldb-taskmanager/**"
- "release/**"
- "test/integration-test/openmldb-test-python/**"
workflow_dispatch:
env:
GIT_SUBMODULE_STRATEGY: recursive
NPROC: 5 # default Parallel build number for GitHub's Linux runner
EXAMPLES_ENABLE: OFF # turn off hybridse's example code
HYBRIDSE_TESTING_ENABLE: OFF # turn off hybridse's test code
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
openmldb-test-python:
runs-on: [self-hosted,generic]
container:
image: ghcr.io/4paradigm/hybridsql:latest
steps:
- uses: actions/checkout@v2
- name: build openmldb
run: |
make configure SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
make build SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
make install SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
- name: install openmldb
run: |
yum install -y rsync
bash test/integration-test/openmldb-test-python/install.sh
- name: run test
run: |
python3 -m easy_install pip
python3 -m pip install requests openmldb pytest
python3 -m pytest test/integration-test/openmldb-test-python/ha_cases --junit-xml=pytest.xml
- name: upload ut results
if: always()
uses: actions/upload-artifact@v3
with:
name: openmldb-test-python-${{ github.sha }}
path: pytest.xml