File tree Expand file tree Collapse file tree 2 files changed +43
-3
lines changed Expand file tree Collapse file tree 2 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Elasticsearch
22
33on :
44 push :
77 pull_request :
88
99jobs :
10- tests :
10+ elasticsearch_tests :
1111 runs-on : ubuntu-latest
1212 services :
1313 es :
3939
4040 - name : Run tests
4141 run : python3 search_test.py --count=2000 --search_db_url=http://localhost:9200
42-
Original file line number Diff line number Diff line change 1+ name : OpenSearch
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+
9+ jobs :
10+ opensearch_tests :
11+ runs-on : ubuntu-latest
12+ services :
13+ es :
14+ image : opensearchproject/opensearch:2
15+ ports :
16+ - 9200:9200
17+ options : >-
18+ --env discovery.type=single-node
19+ --env DISABLE_SECURITY_PLUGIN=true
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : 3.12
29+
30+ - name : Install dependencies
31+ run : |
32+ pip install --upgrade pip
33+ pip install -r requirements.txt
34+
35+ - name : Wait for Opensearch
36+ run : |
37+ sleep 10
38+ curl -s http://localhost:9200
39+
40+ - name : Run tests
41+ run : python3 search_test.py --count=2000 --search_db_url=http://localhost:9200
You can’t perform that action at this time.
0 commit comments