This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
Update README regarding archiving opensearch-dsl-py (#113) #272
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |