update master branch to v0.2.1 #21
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master, development ] | |
jobs: | |
elasticsearch-7: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.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: Run elasticsearch | |
run: | | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.16.1 | |
docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.16.1 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install 'elasticsearch<8.0.0' | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
python test.py --live --coverage | |
#- name: Coveralls | |
# uses: AndreMiras/coveralls-python-action@develop | |
# with: | |
# parallel: true | |
# flag-name: Unit Test | |
elasticsearch-8-unsecured: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.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: Run elasticsearch | |
run: | | |
docker pull docker.elastic.co/elasticsearch/elasticsearch-wolfi:8.17.1 | |
docker run -d -p 9200:9200 -p 9300:9300 \ | |
-e "discovery.type=single-node" \ | |
-e "xpack.security.enabled=false" \ | |
-e "action.destructive_requires_name=false" \ | |
docker.elastic.co/elasticsearch/elasticsearch-wolfi:8.17.1 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install 'elasticsearch>=8.0.0' | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
python test.py --live --coverage | |
#- name: Coveralls | |
# uses: AndreMiras/coveralls-python-action@develop | |
# with: | |
# parallel: true | |
# flag-name: Unit Test |