-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
42 lines (37 loc) · 845 Bytes
/
ci.yml
File metadata and controls
42 lines (37 loc) · 845 Bytes
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
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
services:
mailhog:
image: mailhog/mailhog:latest
ports:
- 1025:1025 # SMTP
openai:
image: tidedra/mock_openai:latest
ports:
- 30000:30000
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v7.1.4
- name: Run Pytest
env:
ZOTERO_ID: "0"
ZOTERO_KEY: "AbCdEfGhIjKlMnOpQrStUvWx"
SENDER: "test@example.com"
RECEIVER: "test@example.com"
SENDER_PASSWORD: "test"
OPENAI_API_KEY: "sk-xxx"
OPENAI_API_BASE: "http://openai:30000/v1"
run: |
uv run pytest