-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.01 KB
/
Copy pathpython_test.yml
File metadata and controls
31 lines (29 loc) · 1.01 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
name: Run Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
# google-genai has no wheels for Python 3.8; 3.10+ is supported.
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
env:
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
run: |
python3 -m pytest test_journal.py -v
python3 -m pytest test_redis.py -v
python3 -m pytest test_three.py -v
python3 -m pytest test_chat_agent.py -v