File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Nightly Tests
1
+ name : API Model Tests
2
2
3
- # Run every day at 6:00 AM UTC
4
3
on :
5
- schedule :
6
- - cron : " 0 6 * * *"
4
+ workflow_dispatch :
5
+ inputs :
6
+ branch_name :
7
+ description : ' Name of the branch to test'
8
+ required : true
9
+ type : string
7
10
8
11
jobs :
9
12
tests :
10
- name : Run the tests
13
+ name : Run API Model Tests
11
14
runs-on : ubuntu-latest
12
15
env :
13
16
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -21,21 +24,27 @@ jobs:
21
24
22
25
steps :
23
26
- uses : actions/checkout@v3
27
+ with :
28
+ ref : ${{ github.event.inputs.branch_name }}
29
+
24
30
- name : Set up Python ${{ matrix.python-version }}
25
31
uses : actions/setup-python@v4
26
32
with :
27
33
python-version : ${{ matrix.python-version }}
34
+
28
35
- name : Install Ollama
29
36
run : |
30
37
curl -fsSL https://ollama.com/install.sh | sh
31
38
ollama --version
32
39
ollama pull tinyllama
40
+
33
41
- name : Set up test environment
34
42
run : |
35
43
python -m pip install --upgrade pip
36
44
pip install uv
37
45
uv venv
38
46
uv pip install -e .[test]
47
+
39
48
- name : Create matrix id
40
49
id : matrix-id
41
50
env :
45
54
export MATRIX_ID=`echo $MATRIX_CONTEXT | md5sum | cut -c 1-32`
46
55
echo $MATRIX_ID
47
56
echo "::set-output name=id::$MATRIX_ID"
57
+
48
58
- name : Run tests
49
59
run : |
50
60
uv run pytest -x --cov=outlines -m 'api_call' --ignore=tests/models/test_dottxt.py
You can’t perform that action at this time.
0 commit comments