9
9
- main
10
10
workflow_dispatch :
11
11
12
+ permissions :
13
+ contents : read
14
+ pull-requests : read
15
+
12
16
jobs :
13
17
changed_files :
14
18
runs-on : ubuntu-latest
36
40
fi
37
41
38
42
python_integration_test :
39
- name : Python Integration Test
43
+ name : Python Integration Test (${{ matrix.python-version }})
40
44
needs : changed_files
41
45
if : >
42
46
(github.event_name == 'push') ||
46
50
)) ||
47
51
(github.event_name == 'workflow_dispatch' && github.event.inputs.run-python-tests == 'true')
48
52
runs-on : ubuntu-latest
53
+ strategy :
54
+ matrix :
55
+ python-version : ["3.9", "3.11"]
49
56
defaults :
50
57
run :
51
58
working-directory : python
@@ -57,10 +64,10 @@ jobs:
57
64
with :
58
65
version : " 0.6.2"
59
66
60
- - name : Set up Python
67
+ - name : Set up Python ${{ matrix.python-version }}
61
68
uses : actions/setup-python@v5
62
69
with :
63
- python-version-file : " ./ python/.python -version"
70
+ python-version : ${{ matrix. python-version }}
64
71
65
72
- name : Install dependencies
66
73
run : |
74
81
- name : Run integration tests
75
82
env :
76
83
LANGSMITH_TRACING : " true"
84
+ LANGSMITH_ENDPOINT : ${{ secrets.LANGSMITH_ENDPOINT }}
77
85
LANGSMITH_API_KEY : ${{ secrets.LANGSMITH_API_KEY }}
78
86
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
79
87
run : uv run pytest tests
@@ -100,7 +108,7 @@ jobs:
100
108
- name : Setup Node
101
109
uses : actions/setup-node@v3
102
110
with :
103
- node-version : 20 .x
111
+ node-version : 22 .x
104
112
cache : " yarn"
105
113
cache-dependency-path : " js/yarn.lock"
106
114
@@ -113,6 +121,7 @@ jobs:
113
121
- name : Run JS integration tests
114
122
env :
115
123
LANGSMITH_TRACING : " true"
124
+ LANGSMITH_ENDPOINT : ${{ secrets.LANGSMITH_ENDPOINT }}
116
125
LANGSMITH_API_KEY : ${{ secrets.LANGSMITH_API_KEY }}
117
126
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
118
127
run : yarn test src/trajectory/tests src/graph_trajectory/tests
0 commit comments