@@ -212,70 +212,9 @@ jobs:
212212 uses : ./.github/workflows/tests.yml
213213 secrets : inherit
214214 with :
215- cmd : " pytest && pytest -m ros " # run tests that depend on ros as well
215+ cmd : " pytest --durations=0 -m 'not (tool or mujoco)' "
216216 dev-image : ros-dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true' || needs.check-changes.outputs.ros == 'true') && needs.ros-dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
217217
218- run-tests :
219- needs : [check-changes, dev]
220- if : ${{
221- always() &&
222- needs.check-changes.result == 'success' &&
223- (needs.check-changes.outputs.tests == 'true' ||
224- needs.check-changes.outputs.python == 'true' ||
225- needs.check-changes.outputs.dev == 'true')
226- }}
227- uses : ./.github/workflows/tests.yml
228- secrets : inherit
229- with :
230- cmd : " pytest"
231- dev-image : dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true') && needs.dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
232-
233- # we run in parallel with normal tests for speed
234- run-heavy-tests :
235- needs : [check-changes, dev]
236- if : ${{
237- always() &&
238- needs.check-changes.result == 'success' &&
239- (needs.check-changes.outputs.tests == 'true' ||
240- needs.check-changes.outputs.python == 'true' ||
241- needs.check-changes.outputs.dev == 'true')
242- }}
243- uses : ./.github/workflows/tests.yml
244- secrets : inherit
245- with :
246- cmd : " pytest -m heavy"
247- dev-image : dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true') && needs.dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
248-
249- run-lcm-tests :
250- needs : [check-changes, dev]
251- if : ${{
252- always() &&
253- needs.check-changes.result == 'success' &&
254- (needs.check-changes.outputs.tests == 'true' ||
255- needs.check-changes.outputs.python == 'true' ||
256- needs.check-changes.outputs.dev == 'true')
257- }}
258- uses : ./.github/workflows/tests.yml
259- secrets : inherit
260- with :
261- cmd : " pytest -m lcm"
262- dev-image : dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true') && needs.dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
263-
264- run-integration-tests :
265- needs : [check-changes, dev]
266- if : ${{
267- always() &&
268- needs.check-changes.result == 'success' &&
269- (needs.check-changes.outputs.tests == 'true' ||
270- needs.check-changes.outputs.python == 'true' ||
271- needs.check-changes.outputs.dev == 'true')
272- }}
273- uses : ./.github/workflows/tests.yml
274- secrets : inherit
275- with :
276- cmd : " pytest -m integration"
277- dev-image : dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true') && needs.dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
278-
279218 run-mypy :
280219 needs : [check-changes, ros-dev]
281220 if : ${{
@@ -292,43 +231,8 @@ jobs:
292231 cmd : " MYPYPATH=/opt/ros/humble/lib/python3.10/site-packages mypy dimos"
293232 dev-image : ros-dev:${{ (needs.check-changes.outputs.python == 'true' || needs.check-changes.outputs.dev == 'true' || needs.check-changes.outputs.ros == 'true') && needs.ros-dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
294233
295- # Run module tests directly to avoid pytest forking issues
296- # run-module-tests:
297- # needs: [check-changes, dev]
298- # if: ${{
299- # always() &&
300- # needs.check-changes.result == 'success' &&
301- # ((needs.dev.result == 'success') ||
302- # (needs.dev.result == 'skipped' &&
303- # needs.check-changes.outputs.tests == 'true'))
304- # }}
305- # runs-on: [self-hosted, x64, 16gb]
306- # container:
307- # image: ghcr.io/dimensionalos/dev:${{ needs.check-changes.outputs.dev == 'true' && needs.dev.result == 'success' && needs.check-changes.outputs.branch-tag || 'dev' }}
308- # steps:
309- # - name: Fix permissions
310- # run: |
311- # sudo chown -R $USER:$USER ${{ github.workspace }} || true
312- #
313- # - uses: actions/checkout@v4
314- # with:
315- # lfs: true
316- #
317- # - name: Configure Git LFS
318- # run: |
319- # git config --global --add safe.directory '*'
320- # git lfs install
321- # git lfs fetch
322- # git lfs checkout
323- #
324- # - name: Run module tests
325- # env:
326- # CI: "true"
327- # run: |
328- # /entrypoint.sh bash -c "pytest -m module"
329-
330234 ci-complete :
331- needs : [check-changes, ros, python, ros-python, dev, ros-dev, run-tests, run-heavy-tests, run-lcm-tests, run-integration-tests, run- ros-tests, run-mypy]
235+ needs : [check-changes, ros, python, ros-python, dev, ros-dev, run-ros-tests, run-mypy]
332236 runs-on : [self-hosted, Linux]
333237 if : always()
334238 steps :
0 commit comments