forked from AVSLab/basilisk
-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (113 loc) · 3.84 KB
/
Copy pathpull-request.yml
File metadata and controls
121 lines (113 loc) · 3.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: "Pull Request"
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/pre-commit
build-linux:
runs-on: ubuntu-24.04
timeout-minutes: 90
needs: pre-commit
name: Linux (MAX Python)
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/data-cache
- uses: ./.github/actions/build
with:
python-version: 3.14
conan-args: --opNav True --mujoco True --mujocoReplay True
- name: Pytest
working-directory: src
run: |
pip install pytest-error-for-skips pytest-timeout
pytest -n auto -m "not ciSkip" -rs --error-for-skips --timeout=300 --timeout-method=thread -v
- name: CTest
if: ${{ always() && hashFiles('dist3/CTestTestfile.cmake') != '' }}
working-directory: dist3
run: ctest --output-on-failure
build-windows:
runs-on: windows-2025-vs2026
timeout-minutes: 105
needs: pre-commit
name: Windows (MAX Python)
env:
MPLBACKEND: agg
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/data-cache
- uses: ./.github/actions/build
with:
python-version: 3.14
conan-args: --opNav True --mujoco True --mujocoReplay True --generator Ninja
- name: Pytest
shell: pwsh
working-directory: src
run: |
pip install pytest-error-for-skips pytest-timeout
pytest -n auto -m "not ciSkip" -rs --error-for-skips --timeout=300 --timeout-method=thread -v
if(($LastExitCode -ne 0) -and ($LastExitCode -ne 5)) {exit 1}
- name: CTest
if: ${{ always() && hashFiles('dist3/CTestTestfile.cmake') != '' }}
shell: pwsh
working-directory: dist3
run: |
ctest --output-on-failure
if(($LastExitCode -ne 0) -and ($LastExitCode -ne 5)) { exit 1 }
build-macos:
runs-on: macos-26
timeout-minutes: 90
needs: pre-commit
strategy:
fail-fast: false
matrix:
job_suffix: [""]
python_label: ["MIN Python"]
python: ["3.9"]
pytest_flags:
[
'-n auto -m "not ciSkip" -rs --error-for-skips --timeout=300 --timeout-method=thread -v',
]
conan_args: ["--opNav True --mujoco True --mujocoReplay True"]
include:
# An extra Basilisk build to test building without visualization enabled
- python: "3.14"
python_label: "MAX Python"
pytest_flags: -n auto -m "not ciSkip" -rs --timeout=300 --timeout-method=thread -v
conan_args: --opNav True --mujoco True --mujocoReplay True --vizInterface False
job_suffix: "--vizInterface False"
name: macOS (${{ matrix.python_label }}) ${{ matrix.job_suffix }}
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/data-cache
- uses: ./.github/actions/build
with:
python-version: ${{ matrix.python }}
conan-args: ${{ matrix.conan_args }}
- name: Pytest
working-directory: src
run: |
pip install pytest-error-for-skips pytest-timeout
pytest ${{ matrix.pytest_flags }}
- name: CTest
if: ${{ always() && hashFiles('dist3/CTestTestfile.cmake') != '' }}
working-directory: dist3
run: ctest -C Release --output-on-failure
docs:
runs-on: macos-26
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/data-cache
- name: Build Basilisk
uses: ./.github/actions/build
with:
python-version: 3.14
conan-args: --opNav True --allOptPkg --mujoco True --mujocoReplay True
- name: Build docs
uses: ./.github/actions/docs