-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (75 loc) · 2.33 KB
/
Copy pathtests.yml
File metadata and controls
91 lines (75 loc) · 2.33 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# name: SQL-Mind Tests
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python 3.11
# uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# - name: Install dependencies
# run: |
# cd backend
# pip install --upgrade pip
# pip install -r requirements.txt
# - name: Run tests
# env:
# SECRET_KEY: testsecretkey32charslongfortestingonly
# ENCRYPTION_KEY: dGVzdGtleXRlc3RrZXl0ZXN0a2V5dGVzdGtleXQ=
# LLM_PROVIDER: groq
# GROQ_API_KEY: test-key-not-real
# GROQ_MODEL: llama-3.3-70b-versatile
# POSTGRES_HOST: localhost
# POSTGRES_PASSWORD: test
# POSTGRES_USER: postgres
# POSTGRES_DB: testdb
# DATABASE_URL: postgresql+asyncpg://postgres:test@localhost/testdb
# DATABASE_URL_SYNC: postgresql+psycopg2://postgres:test@localhost/testdb
# run: |
# cd backend
# pytest tests/test_basic.py -v
name: SQL-Mind Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
DEBUG: false
SECRET_KEY: testsecretkey32charslongfortestingonly
ENCRYPTION_KEY: gCppvkWKw-wfrBjuSnoTJKFKA_TgUayV7xLGHwvAkPY=
LLM_PROVIDER: groq
GROQ_API_KEY: test-key
GROQ_MODEL: llama-3.3-70b-versatile
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
POSTGRES_DB: testdb
DATABASE_URL: postgresql+asyncpg://postgres:test@localhost:5432/testdb
DATABASE_URL_SYNC: postgresql+psycopg2://postgres:test@localhost:5432/testdb
run: |
cd backend
pytest tests/test_basic.py -vv