Skip to content

Commit 3f009ff

Browse files
kerwan-zengzengkehuanyuecideng
authored
NEW: init workflow file (#13)
Co-authored-by: zengkehuan <zengkehuan@dexforece.com> Co-authored-by: yuecideng <dengyueci@qq.com>
1 parent b560b24 commit 3f009ff

File tree

4 files changed

+112
-11
lines changed

4 files changed

+112
-11
lines changed

.github/workflows/main.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
if: github.event_name == 'pull_request'
12+
runs-on: Linux
13+
env:
14+
NVIDIA_DRIVER_CAPABILITIES: all
15+
NVIDIA_VISIBLE_DEVICES: all
16+
NVIDIA_DISABLE_REQUIRE: 1
17+
container: &container_template
18+
image: 192.168.3.13:5000/dexsdk:ubuntu22.04-cuda12.8.0-h5ffmpeg-v3
19+
volumes:
20+
- "/cache:/cache"
21+
- "/usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d"
22+
- "/usr/share/vulkan/implicit_layer.d:/usr/share/vulkan/implicit_layer.d"
23+
- "/usr/share/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d"
24+
- "/tmp/.X11-unix:/tmp/.X11-unix"
25+
- "/dev/shm/shared:/dev/shm/shared"
26+
options: --memory 100g --gpus device=1 --shm-size 53687091200
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: (CI) Code Style check
30+
run: |
31+
echo "Workspace: ${GITHUB_WORKSPACE}"
32+
ls
33+
pip install black==24.3.0
34+
black --check --diff --color ./
35+
if [ $? -ne 0 ]; then
36+
echo "Code style check failed, please run [black ./] before commit!"
37+
exit 1
38+
fi
39+
40+
build:
41+
needs: lint
42+
runs-on: Linux
43+
env:
44+
NVIDIA_DRIVER_CAPABILITIES: all
45+
NVIDIA_VISIBLE_DEVICES: all
46+
NVIDIA_DISABLE_REQUIRE: 1
47+
container: *container_template
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: (CI) Build docs
51+
run: |
52+
pip install -e .
53+
pip install -r docs/requirements.txt
54+
cd ${GITHUB_WORKSPACE}/docs
55+
echo "Start Building docs..."
56+
make html
57+
- name: Upload pkg
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: ${{ github.workspace }}/docs/build/html
61+
retention-days: 3
62+
63+
test:
64+
if: github.event_name == 'pull_request'
65+
needs: lint
66+
runs-on: Linux
67+
env:
68+
NVIDIA_DRIVER_CAPABILITIES: all
69+
NVIDIA_VISIBLE_DEVICES: all
70+
NVIDIA_DISABLE_REQUIRE: 1
71+
container: *container_template
72+
steps:
73+
- uses: actions/checkout@v4
74+
- name: (CI) Run tests
75+
run: |
76+
# pip install -e .
77+
echo "Unitest Start"
78+
# export HF_ENDPOINT=https://hf-mirror.com
79+
# pytest tests
80+
81+
publish:
82+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
83+
needs: build
84+
runs-on: Linux
85+
permissions:
86+
pages: write
87+
id-token: write
88+
env:
89+
NVIDIA_DRIVER_CAPABILITIES: all
90+
NVIDIA_VISIBLE_DEVICES: all
91+
NVIDIA_DISABLE_REQUIRE: 1
92+
container: *container_template
93+
steps:
94+
- uses: actions/checkout@v4
95+
- name: (CI) Publish package
96+
run: echo "start publish stage"
97+
- name: (CI) Download docs artifact
98+
uses: actions/download-artifact@v4
99+
with:
100+
name: github-pages
101+
- name: (CI) Deploy GitHub Pages
102+
uses: actions/deploy-pages@v4

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
[![Version](https://img.shields.io/badge/version-0.0.1-blue.svg)](https://github.com/DexForce/EmbodiChain/releases)
77
[![License](https://img.shields.io/github/license/DexForce/EmbodiChain)](LICENSE)
8-
[![Docs](https://img.shields.io/badge/docs-online-blue)](https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/introduction)
9-
[![Build Status](https://img.shields.io/github/actions/workflow/status/DexForce/EmbodiChain/ci.yml?branch=main)](https://github.com/DexForce/EmbodiChain/actions)
8+
[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-docs-blue?logo=github&logoColor=white)](https://dexforce.github.io/EmbodiChain/introduction.html)
109

1110
---
1211

@@ -31,9 +30,9 @@ EmbodiChain is an end-to-end, GPU-accelerated framework for Embodied AI. It stre
3130

3231
To get started with EmbodiChain, follow these steps:
3332

34-
- [Installation Guide](https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/quick_start/install)
35-
- [Quick Start Tutorial](https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/tutorial/)
36-
- [API Reference](https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/api_reference/)
33+
- [Installation Guide](https://dexforce.github.io/EmbodiChain/quick_start/install.html)
34+
- [Quick Start Tutorial](https://dexforce.github.io/EmbodiChain/tutorial/index.html)
35+
- [API Reference](https://dexforce.github.io/EmbodiChain/api_reference/index.html)
3736

3837

3938
## Citation

docs/source/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EmbodiChain
99
.. image:: ../../assets/imgs/teaser.jpg
1010
:alt: teaser
1111

12-
📘 `Documentation <https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/introduction>`_
12+
📘 `Documentation <https://dexforce.github.io/EmbodiChain/introduction.html>`_
1313

1414
---
1515

@@ -36,9 +36,9 @@ Getting Started
3636

3737
To get started with EmbodiChain, follow these steps:
3838

39-
* `Installation Guide <https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/quick_start/install>`_
40-
* `Quick Start Tutorial <https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/tutorial/>`_
41-
* `API Reference <https://6921c7e19027fbac6753678c--astounding-horse-770602.netlify.app/api_reference/>`_
39+
* `Installation Guide <https://dexforce.github.io/EmbodiChain/quick_start/install.html>`_
40+
* `Quick Start Tutorial <https://dexforce.github.io/EmbodiChain/tutorial/index.html>`_
41+
* `API Reference <https://dexforce.github.io/EmbodiChain/api_reference/index.html>`_
4242

4343

4444
Citation

tests/gym/envs/test_embodied_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
],
9898
"rigid_object": [
9999
{
100-
"uid": "paper_cup",
100+
"uid": "duck",
101101
"shape": {
102102
"shape_type": "Mesh",
103-
"fpath": "PaperCup/paper_cup.ply",
103+
"fpath": "ToyDuck/toy_duck.glb",
104104
},
105105
"body_scale": (0.75, 0.75, 1.0),
106106
"init_pos": (0.0, 0.0, 1.0),

0 commit comments

Comments
 (0)