Skip to content

Commit

Permalink
Merge pull request #73 from alk-lbinet/CI
Browse files Browse the repository at this point in the history
Improve CI
  • Loading branch information
alk-lbinet authored Jul 5, 2021
2 parents ba0a0e0 + 542350f commit e978774
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-3-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
python setup.py develop
pip install -e ".[develop]"
- name: Test with pytest and generate coverage report
run:
pytest --cov=./pandagg --cov-report=xml
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ develop:
doc-references:
-make -C docs api-doc

tests:
pytest

coverage:
coverage run --source=./pandagg -m pytest
coverage report
Expand Down
4 changes: 4 additions & 0 deletions pandagg/node/aggs/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@


class Composite(BucketAggClause):

KEY = "composite"
VALUE_ATTRS = ["doc_count"]

def __init__(self, sources, size=None, after_key=None, meta=None, **body):
"""https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html
:param sources:
Expand Down
7 changes: 0 additions & 7 deletions requirements-test.txt

This file was deleted.

12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@

install_requires = ["six", "future", "lighttree==1.1.1", "elasticsearch>=7.0.0,<8.0.0"]

develop_requires = [
"pre-commit",
"black",
"flake8",
"pytest",
"pytest-cov",
"mock",
"pandas",
]

setup(
name="pandagg",
Expand All @@ -30,6 +39,7 @@
test_suite="pandagg.tests",
zip_safe=False,
install_requires=install_requires,
setup_requires=["pytest-runner"],
extras_require={"develop": develop_requires},
tests_require=develop_requires,
license="Apache-2.0",
)

0 comments on commit e978774

Please sign in to comment.