-
Notifications
You must be signed in to change notification settings - Fork 322
62 lines (58 loc) · 2.02 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
59
60
61
62
# 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]
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container:
image: ghcr.io/4paradigm/hybridsql:latest
steps:
- uses: actions/checkout@v4
- name: build openmldb
run: |
git config --system --add safe.directory $(pwd)
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@v4
with:
name: openmldb-test-python-${{ github.sha }}
path: pytest.xml