33 workflow_call :
44 pull_request :
55 paths :
6- - " python/**"
7- - " src/pybind/**"
6+ - " python/**"
7+ - " src/pybind/**"
8+ - " .github/workflows/**"
89
910jobs :
10- lint :
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- - name : Set up Python 3.10
15- uses : actions/setup-python@v5
16- with :
17- python-version : ' 3.10'
18- cache : ' pip'
19- - name : Install linting and formatting dependencies
20- run : python -m pip install -r requirements_dev.txt
21- - name : Code linting
22- run : make pylint
23-
2411 format :
2512 runs-on : ubuntu-latest
2613 steps :
2714 - uses : actions/checkout@v4
2815 - name : Set up Python 3.10
2916 uses : actions/setup-python@v5
3017 with :
31- python-version : ' 3.10'
32- cache : ' pip'
18+ python-version : " 3.10"
19+ cache : " pip"
3320 - name : Install linting and formatting dependencies
3421 run : python -m pip install -r requirements_dev.txt
3522 - name : Check formatting
@@ -40,32 +27,31 @@ jobs:
4027 env :
4128 CC : clang-15
4229 CXX : clang++-15
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4331 steps :
4432 - uses : actions/checkout@v4
4533 - name : Install CPP dependencies
46- run : sudo apt-get install --yes build-essential cmake git libpoco-dev libeigen3-dev libxslt-dev libcoin-dev libccd-dev libglfw3-dev libboost-all-dev liblzma-dev ninja-build clang-15
47- # uses: awalsh128/cache-apt-pkgs-action@latest
48- # with:
49- # packages: build-essential cmake git libpoco-dev libeigen3-dev libxslt-dev libcoin-dev libccd-dev libglfw3-dev libboost-all-dev liblzma-dev ninja-build clang-15 clang-tidy-15 clang-format
50- # version: 1.0
51- - name : Set up Python 3.10
34+ run : sudo apt install $(cat debian_deps.txt)
35+ - name : Install virtual frame buffer tool
36+ run : sudo apt install xvfb
37+ - name : Set up Python 3.11
5238 uses : actions/setup-python@v5
5339 with :
54- python-version : ' 3.10 '
55- cache : ' pip'
40+ python-version : " 3.11 "
41+ cache : " pip"
5642 - name : Install building dependencies
5743 run : python -m pip install -r requirements_dev.txt
58- - name : Create python wheel
59- run : python -m build --wheel --outdir dist/
60- - name : Install the wheel package
61- run : python -m pip install dist/*.whl
44+ - name : Install wheel
45+ run : python -m pip install wheel
46+ - name : Download the models using cmake
47+ env :
48+ MODEL_TOKEN : ${{ secrets.MODEL_TOKEN }}
49+ run : cmake -G Ninja -B build -DINCLUDE_UTN_MODELS=ON -DGITLAB_MODELS_TOKEN="$MODEL_TOKEN" -DMUJOCO_VERSION=3.1.5
50+ - name : Install the package
51+ run : python -m pip install --no-build-isolation .
52+ - name : Code linting
53+ run : make pylint
6254 - name : Check that stub files are up-to-date
6355 run : make stubgen && git diff --exit-code
64- - name : Upload Artifact
65- uses : actions/upload-artifact@v4
66- with :
67- name : rcsss
68- path : dist/*.whl
69- retention-days : 30
7056 - name : Ensure all unittests(pytest) are passing
71- run : make pytest
57+ run : xvfb-run make pytest
0 commit comments