Skip to content

Add TYPESENSE settings example #161

Add TYPESENSE settings example

Add TYPESENSE settings example #161

Workflow file for this run

---
name: "build"
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]
jobs:
build:
name: Python ${{ matrix.python-version }} | Django ${{ matrix.django-version}} | Ubuntu
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
django-version: "3.2.*"
- python-version: 3.8
django-version: "4.0.*"
- python-version: 3.9
django-version: "3.2.*"
- python-version: 3.9
django-version: "4.0.*"
- python-version: 3.9
django-version: "4.1.*"
- python-version: "3.10"
django-version: "3.2.*"
- python-version: "3.10"
django-version: "4.0.*"
- python-version: "3.10"
django-version: "4.1.*"
coverage: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Django ${{ matrix.django-version }}
run: |
pip install Django==${{ matrix.django-version }}
pip install coverage
pip install factory-boy
pip install pytz
pip install typesense
- name: Setup TypeSense
uses: jirevwe/[email protected]
with:
typesense-version: '27.0'
typesense-api-key: sample_key
- name: Run tests
run: |
coverage run runtests.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}