-
Notifications
You must be signed in to change notification settings - Fork 438
47 lines (43 loc) · 1.26 KB
/
py_e2e_tests.yml
File metadata and controls
47 lines (43 loc) · 1.26 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
name: Python - E2E Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- 'python/**'
defaults:
run:
working-directory: python
jobs:
test:
timeout-minutes: 120
name: Tests
runs-on: ubuntu-latest
env:
TEST_NUM_WORKERS: ${{ vars.TEST_NUM_WORKERS }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install ollama
run: curl -fsSL https://ollama.com/install.sh | sh
- name: Run ollama
run: |
ollama serve &
ollama pull granite4:micro
ollama pull llama3.1:8b
ollama pull llama3.1
- name: Call ollama API
run: |
curl -d '{"model": "granite4:micro", "stream": false, "prompt":"Whatever I say, answer with Yes"}' http://localhost:11434/api/generate
- run: mise python:test:e2e
env:
BEEAI_OPEN_METEO_TOOL_PROXY: ${{ secrets.PROXY }}
BEEAI_DDG_TOOL_PROXY: ${{ secrets.BEEAI_DDG_TOOL_PROXY }}
BEEAI_DDG_TOOL_PROXY_VERIFY: ${{ secrets.BEEAI_DDG_TOOL_PROXY_VERIFY }}