-
Notifications
You must be signed in to change notification settings - Fork 33
51 lines (44 loc) · 1.14 KB
/
python-test.yml
File metadata and controls
51 lines (44 loc) · 1.14 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
name: Python - Run checks and tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'sec-gemini-python/**'
pull_request:
paths:
- 'sec-gemini-python/**'
schedule:
- cron: "42 */3 * * *"
permissions:
contents: read
id-token: write
jobs:
build:
name: python
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./sec-gemini-python
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install the project
run: uv sync --all-extras --dev
- name: Check source
run: bash ./scripts/check_source.sh
- name: Run tests
run: uv run -m pytest
env:
SEC_GEMINI_API_KEY: ${{ secrets.SEC_GEMINI_API_KEY }}
- name: Run basic example
run: uv run ./scripts/basic_example.py
env:
SEC_GEMINI_API_KEY: ${{ secrets.SEC_GEMINI_API_KEY }}
- name: Run basic openai example
run: uv run ./scripts/basic_openai_example.py
env:
SEC_GEMINI_API_KEY: ${{ secrets.SEC_GEMINI_API_KEY }}