Skip to content

Commit ca05b0a

Browse files
authored
chore(ci): Update CI (#61)
* Update CI * Add perms
1 parent cd26b9a commit ca05b0a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/integration_tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- main
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
pull-requests: read
15+
1216
jobs:
1317
changed_files:
1418
runs-on: ubuntu-latest
@@ -36,7 +40,7 @@ jobs:
3640
fi
3741
3842
python_integration_test:
39-
name: Python Integration Test
43+
name: Python Integration Test (${{ matrix.python-version }})
4044
needs: changed_files
4145
if: >
4246
(github.event_name == 'push') ||
@@ -46,6 +50,9 @@ jobs:
4650
)) ||
4751
(github.event_name == 'workflow_dispatch' && github.event.inputs.run-python-tests == 'true')
4852
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
python-version: ["3.9", "3.11"]
4956
defaults:
5057
run:
5158
working-directory: python
@@ -57,10 +64,10 @@ jobs:
5764
with:
5865
version: "0.6.2"
5966

60-
- name: Set up Python
67+
- name: Set up Python ${{ matrix.python-version }}
6168
uses: actions/setup-python@v5
6269
with:
63-
python-version-file: "./python/.python-version"
70+
python-version: ${{ matrix.python-version }}
6471

6572
- name: Install dependencies
6673
run: |
@@ -74,6 +81,7 @@ jobs:
7481
- name: Run integration tests
7582
env:
7683
LANGSMITH_TRACING: "true"
84+
LANGSMITH_ENDPOINT: ${{ secrets.LANGSMITH_ENDPOINT }}
7785
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
7886
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
7987
run: uv run pytest tests
@@ -100,7 +108,7 @@ jobs:
100108
- name: Setup Node
101109
uses: actions/setup-node@v3
102110
with:
103-
node-version: 20.x
111+
node-version: 22.x
104112
cache: "yarn"
105113
cache-dependency-path: "js/yarn.lock"
106114

@@ -113,6 +121,7 @@ jobs:
113121
- name: Run JS integration tests
114122
env:
115123
LANGSMITH_TRACING: "true"
124+
LANGSMITH_ENDPOINT: ${{ secrets.LANGSMITH_ENDPOINT }}
116125
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
117126
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
118127
run: yarn test src/trajectory/tests src/graph_trajectory/tests

0 commit comments

Comments
 (0)