-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.01 KB
/
ci.yml
File metadata and controls
47 lines (35 loc) · 1.01 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: CI
on:
push:
branches: ["main"]
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
- name: Install OpenEnv CLI
run: python -m pip install git+https://github.com/meta-pytorch/OpenEnv.git
- name: Sync environment
run: uv sync --frozen --extra dev
- name: Run tests
run: uv run pytest -q
- name: Validate local environment structure
run: openenv validate --verbose
- name: Start server
run: |
uv run server --port 8000 &
echo $! > server.pid
sleep 8
- name: Validate running environment
run: openenv validate http://127.0.0.1:8000
- name: Stop server
if: always()
run: |
if [ -f server.pid ]; then kill $(cat server.pid) || true; fi