Fix typo in setup.py metadata #26
Workflow file for this run
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: test_opensearch | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test OpenSearch | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
es-version: ['1', '2'] | |
include: | |
- python-version: '3.7' | |
tox_env: py37-elastic6 | |
requirements: elastic_6x | |
- python-version: '3.7' | |
tox_env: py37-elastic7 | |
requirements: elastic_7x | |
- python-version: '3.8' | |
tox_env: py38-elastic6 | |
requirements: elastic_6x | |
- python-version: '3.8' | |
tox_env: py38-elastic7 | |
requirements: elastic_7x | |
- python-version: '3.9' | |
tox_env: py39-elastic6 | |
requirements: elastic_6x | |
- python-version: '3.9' | |
tox_env: py39-elastic7 | |
requirements: elastic_7x | |
- python-version: '3.10' | |
tox_env: py310-elastic6 | |
requirements: elastic_6x | |
- python-version: '3.10' | |
tox_env: py310-elastic7 | |
requirements: elastic_7x | |
services: | |
elasticsearch: | |
image: opensearchproject/opensearch:${{ matrix.es-version }} | |
ports: | |
- 9200:9200 | |
options: >- | |
-e="http.host=0.0.0.0" | |
-e="transport.host=127.0.0.1" | |
-e="discovery.type=single-node" | |
-e="plugins.security.disabled=true" | |
--health-cmd="curl http://localhost:9200/_cluster/health" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install pip-tools | |
python -m pip install tox | |
rm -rf requirements/testing_opensearch_${{ matrix.es-version }}x.txt | |
pip-compile requirements/testing_opensearch_${{ matrix.es-version }}x.in | |
python -m pip install -r requirements/testing_opensearch_${{ matrix.es-version }}x.txt | |
- name: Run tests | |
uses: nick-invision/retry@v2 | |
with: | |
command: ANYSEARCH_PREFERRED_BACKEND=OpenSearch python runtests.py | |
timeout_minutes: 15 | |
max_attempts: 4 | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v2 | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel: true | |
flag-name: Run Tests | |
coveralls_finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel-finished: true | |
debug: True |