feat: carry curation rules and synonyms to new collection after scraper runs #9
Workflow file for this run
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
name: Lint and test | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
typesense-version: ["26.0"] | |
typesense-port: ["8108:8108"] | |
services: | |
typesense: | |
image: typesense/typesense:${{ matrix.typesense-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Typesense | |
run: | | |
docker run -d \ | |
-p ${{ matrix.typesense-port }} \ | |
--name typesense \ | |
-v /tmp/typesense-data:/data \ | |
typesense/typesense:${{ matrix.typesense-version}} \ | |
--api-key=xyz \ | |
--data-dir /data \ | |
--enable-cors | |
- name: Curl Typesense | |
run: sleep 1 && curl http://localhost:8108/health | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- run: touch .env | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv install --dev | |
- name: Run linter | |
run: pipenv run pylint scraper cli deployer | |
- name: Run tests | |
run: pipenv run ./docsearch test no_browser |