-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.02 KB
/
ci.yml
File metadata and controls
44 lines (37 loc) · 1.02 KB
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
42
43
44
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.14'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Lint with Ruff
run: ruff check .
- name: Type check with Pyright
run: npx pyright app
- name: Run tests
env:
DATABASE_PATH: "test_leads.db"
LOG_LEVEL: "DEBUG"
SERPER_API_KEY: "fake_serper_key_123"
MAKE_LEAD_KEY: "fake_make_key_123"
WEBHOOK_URL: "https://hook.eu1.make.com/fake_endpoint"
SCRAPER_TIMEOUT: "30"
SCRAPER_RETRIES: "3"
SCRAPER_MAX_WORKERS: "3"
SERPER_MAX_RESULTS: "5"
WEBHOOK_BATCH_SIZE: "10"
run: pytest tests/test_suite.py