-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1.17 KB
/
test.yml
File metadata and controls
48 lines (40 loc) · 1.17 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
name: Run Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest # Use GitHub-hosted Linux runner
env:
LOG_LEVEL: INFO
GITHUB_USERNAME: fake_username
GITHUB_PAT: fake_personal_access_tokne
OPENAI_API_KEY: fake-openapi-key
ANTHROPIC_API_KEY: fake-anthropicapi-key
OLLAMA_BASE_URL: fake-ollama_base_url
steps:
# Step 1: Checkout code
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
with:
python-version: '3.12' # Match your local version
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
# Step 4: Run pytest (will use pytest.ini automatically)
- name: Run pytest
run: |
pytest