-
-
Notifications
You must be signed in to change notification settings - Fork 38
41 lines (37 loc) · 1.1 KB
/
lint-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lint and test
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
typesense-version: ["26.0"]
typesense-port: ["8108"]
steps:
- uses: actions/checkout@v4
- name: Start Typesense
uses: jirevwe/[email protected]
with:
typesense-version: ${{ matrix.typesense-version }}
typesense-api-key: xyz
typesense-port: ${{ matrix.typesense-port }}
- name: Curl Typesense
run: sleep 10 && curl http://localhost:8108/health
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: touch .env
- run: |
echo "TYPESENSE_API_KEY=xyz
TYPESENSE_HOST=localhost
TYPESENSE_PORT=8108
TYPESENSE_PROTOCOL=http" > .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