@@ -25,62 +25,41 @@ jobs:
2525 uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
28-
29- - name : Install Homebrew
30- run : |
31- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
32- brew install swig doxygen
33-
34- - name : " Create virtual Environment"
35- run : python3 -m venv .venv
36- - name : " Capture initial package versions"
28+ - name : Capture initial package versions
3729 run : |
38- source .venv/bin/activate
3930 pip freeze > initial_versions.txt
4031 echo "Initial package versions:" >> $GITHUB_STEP_SUMMARY
4132 cat initial_versions.txt >> $GITHUB_STEP_SUMMARY
4233 echo "\n" >> $GITHUB_STEP_SUMMARY
43-
44- - name : " Install canary requirements"
45- run : |
46- source .venv/bin/activate
47- pip3 install -r .github/workflows/requirements.txt
48- pip3 install -r .github/workflows/requirements_dev.txt
49- pip3 install -r .github/workflows/requirements_doc.txt
50- pip3 install pytest-error-for-skips
51-
52- - name : " Capture final package versions"
34+ - name : Build Basilisk
35+ uses : ./.github/actions/build
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+ build-mode : conan
39+ conan-args : --opNav True --allOptPkg --mujoco True --mujocoReplay True --recorderPropertyRollback True --pyPkgCanary True
40+ is-canary : true
41+ install-doc-reqs : true
42+ - name : Capture final package versions
5343 run : |
54- source .venv/bin/activate
5544 pip freeze > final_versions.txt
5645 echo "Final package versions:" >> $GITHUB_STEP_SUMMARY
5746 cat final_versions.txt >> $GITHUB_STEP_SUMMARY
5847 echo "\n" >> $GITHUB_STEP_SUMMARY
5948 echo "Package version changes:" >> $GITHUB_STEP_SUMMARY
6049 diff -u initial_versions.txt final_versions.txt | grep -E '^[+-]' | grep -v '^+++' | grep -v '^---' >> $GITHUB_STEP_SUMMARY
61-
62- - name : " Build basilisk with latest dependencies"
63- run : source .venv/bin/activate && python3 conanfile.py --opNav True --allOptPkg --mujoco True --mujocoReplay True --pyPkgCanary True
64-
65- - name : " Run Python Tests"
50+ - name : Run Python Tests
51+ working-directory : src
6652 run : |
67- source .venv/bin/activate
68- cd src
53+ pip install pytest-error-for-skips
6954 pytest -n auto -m "not ciSkip" -rs --error-for-skips --dist=loadscope -v
7055 if : ${{ always() }}
71- - name : " Run C/C++ Tests"
56+ - name : Run C/C++ Tests
7257 working-directory : ./dist3
7358 run : ctest -C Release
7459 if : ${{ always() }}
75-
76- - name : " Build Documentation"
77- run : |
78- source .venv/bin/activate
79- cd docs
80- make html SPHINXOPTS="-W"
81- if : ${{ always() }}
82-
83- - name : " Upload package version logs"
60+ - name : Build docs
61+ uses : ./.github/actions/docs
62+ - name : Upload package version logs
8463 if : always()
8564 uses : actions/upload-artifact@v4
8665 with :
0 commit comments