Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/57-flexible-aggregagations
- Loading branch information
Showing
57 changed files
with
1,372 additions
and
256 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service_name: github-actions |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
GITHUB_TOKEN | ||
COVERALLS_REPO_TOKEN |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] | ||
es-version: ['6', '7'] | ||
include: | ||
- python-version: '3.6' | ||
tox_env: py36-elastic6 | ||
requirements: elastic_6x | ||
- python-version: '3.6' | ||
tox_env: py36-elastic7 | ||
requirements: elastic_7x | ||
|
||
- 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: bitnami/elasticsearch:${{ matrix.es-version }} | ||
ports: | ||
- 9200:9200 | ||
options: >- | ||
-e="discovery.type=single-node" | ||
--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 | ||
pip-compile requirements/testing_${{ matrix.es-version }}x.in | ||
python -m pip install -r requirements/testing_${{ matrix.es-version }}x.txt | ||
- name: Run tests | ||
uses: nick-invision/retry@v2 | ||
with: | ||
command: python runtests.py | ||
timeout_minutes: 15 | ||
max_attempts: 3 | ||
- 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 |
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 file was deleted.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.23 | ||
ADD ./docker/elasticsearch/elasticsearch.yml /usr/share/elasticsearch/config/ | ||
USER root | ||
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml | ||
USER elasticsearch |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# Pip install requirements.txt | ||
echo "Installing requirements" | ||
pip install -r requirements.txt | ||
cd /code/ | ||
|
||
# Pip install requirements | ||
echo "Testing Elasticsearch 7.x: Installing requirements" | ||
pip-compile requirements/testing_7x.in | ||
pip install -r requirements/testing_7x.txt | ||
|
||
# Clean up | ||
echo "Clean up" | ||
echo "Testing Elasticsearch 7.x: Clean up" | ||
./scripts/clean_up.sh | ||
|
||
# Running tests | ||
echo "Running tests" | ||
echo "Testing Elasticsearch 7.x: Running tests" | ||
./runtests.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
cd /code/ | ||
|
||
# Pip install requirements | ||
echo "Testing Elasticsearch 6.x: Installing requirements" | ||
pip-compile requirements/testing_6x.in | ||
pip install -r requirements/testing_6x.txt | ||
|
||
# Clean up | ||
echo "Testing Elasticsearch 6.x: Clean up" | ||
./scripts/clean_up.sh | ||
|
||
# Running tests | ||
echo "Testing Elasticsearch 6.x: Running tests" | ||
./runtests.py |
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 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 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
Oops, something went wrong.