-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.06 KB
/
Copy pathintegration.yml
File metadata and controls
46 lines (38 loc) · 1.06 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
name: Integration Tests
on:
push:
branches: [master]
workflow_dispatch:
jobs:
integration:
runs-on: ubuntu-latest
timeout-minutes: 15
services:
opensandbox-server:
image: python:3.12-slim
ports:
- 8080:8080
options: >-
--health-cmd "curl -f http://127.0.0.1:8080/health || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 10
--health-start-period 60s
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Pre-pull sandbox image
run: docker pull opensandbox/code-interpreter:latest
- name: Run integration tests
run: npm run test:integration
env:
OPENSANDBOX_DOMAIN: localhost:8080
OPENSANDBOX_IMAGE: opensandbox/code-interpreter:latest