forked from opensearch-project/opensearch-dsl-py
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.42 KB
/
integration.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
name: Integration tests
on: [push, pull_request]
jobs:
integration:
name: Integ
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [ '1.0.1', '1.1.0', '1.2.4', '1.3.7', '2.0.1', '2.1.0', '2.2.1', '2.3.0', '2.4.0', '2.5.0' ]
secured: [ "true", "false" ]
python-version: [ '3.8' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clean docker containers
run: |
docker volume prune --force
docker network prune --force
docker system prune --volumes --force
- name: Launch OpenSearch cluster
run: |
export OPENSEARCH_VERSION=${{ matrix.entry.version }}
export SECURE_INTEGRATION=${{ matrix.secured }}
docker-compose --project-directory .ci/opensearch build
docker-compose --project-directory .ci/opensearch up -d
- name: Setup Python - ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1
- name: Install nox
run: |
python -m pip install --upgrade pip nox
- name: Integ OpenSearch secured=${{ matrix.secured }}
run: |
export SECURE_INTEGRATION=${{ matrix.secured }}
nox --no-error-on-missing-interpreter -rs test