Skip to content

Allow passing size to facet fields to control the amount of facets to… #15

Allow passing size to facet fields to control the amount of facets to…

Allow passing size to facet fields to control the amount of facets to… #15

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
services:
docker:
image: docker:19.03.12
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install test dependencies
run: |
pip install .[test]
- name: Run tests and generate coverage
run: |
pytest
env:
CI: true
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: htmlcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install linting dependencies
run: |
pip install .[dev,test]
- name: Run pylint (linting)
run: |
pylint --rcfile=.pylintrc src/django_es_kit/
- name: Check for code formatting (dry-run)
run: |
black --check .