Skip to content

Commit eb8a537

Browse files
Leo Parkleoppark94
authored andcommitted
1 parent 1bc256e commit eb8a537

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

.github/workflows/tests.yml renamed to .github/workflows/elasticsearch_tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Elasticsearch
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
tests:
10+
elasticsearch_tests:
1111
runs-on: ubuntu-latest
1212
services:
1313
es:
@@ -39,4 +39,3 @@ jobs:
3939
4040
- name: Run tests
4141
run: python3 search_test.py --count=2000 --search_db_url=http://localhost:9200
42-
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)