Skip to content

feat: search fixes + test update #20

feat: search fixes + test update

feat: search fixes + test update #20

Workflow file for this run

name: Test
on:
push:
branches:
- '*'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup poetry cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run linters
run: |
poetry run ruff .
poetry run black --check .
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: 6.0
- name: Run tests
env:
MONGODB_URL: mongodb://localhost:27017
CI: true
run: |
poetry run pytest