Repository navigation
59 lines (51 loc) · 1.79 KB
/
Copy pathci.yml
File metadata and controls
59 lines (51 loc) · 1.79 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI – Run Tests
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
test:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r backend/requirements.txt
pip install pytest pytest-cov
pip install flask-wtf bleach Pillow beautifulsoup4 "pydantic[email]" pytest pytest-cov
- name: Run pytest
env:
GOOGLE_BOOKS_API_KEY: "ci-fake-key"
OPENAI_API_KEY: "ci-fake-key"
GROQ_API_KEY: "ci-fake-key"
GEMINI_API_KEY: "ci-fake-key"
FLASK_ENV: testing
PYTHONPATH: ".:backend"
run: |
python -m pytest tests/ \
--ignore=tests/test_llm.py \
--ignore=tests/test_mood_improvements.py \
--ignore=tests/test_mood_cache_db.py \
--ignore=tests/test_category_cache.py \
--ignore=tests/test_env_validation.py \
--ignore=tests/test_purchase_links.py \
-v --tb=short --cov=backend
- name: Install dependencies
run: |
pip install --upgrade pip
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -r backend/requirements.txt
pip install flask-wtf bleach Pillow pytest pytest-cov
- name: Install dependencies
run: |
pip install --upgrade pip
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -r backend/requirements.txt
pip install flask-wtf bleach Pillow beautifulsoup4 pytest pytest-cov