Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
codecov:
branch: dev

comment:
require_head: false
require_base: false
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
permissions:
contents: read
packages: read
id-token: write

jobs:
ci-complete:
Expand Down Expand Up @@ -43,26 +44,27 @@ jobs:
find .venv/lib/*/site-packages/pydrake -name '*.pyi' -delete 2>/dev/null || true

- name: Run tests
if: github.event_name != 'push'
run: |
/entrypoint.sh bash -c "source .venv/bin/activate && pytest --durations=0 -m 'not (tool or mujoco)'"

- name: Run tests with coverage
if: github.event_name == 'push'
run: |
/entrypoint.sh bash -c "source .venv/bin/activate && _DIMOS_COV=1 coverage run -m pytest --durations=0 -m 'not (tool or mujoco)' && coverage combine && coverage html && coverage report"
/entrypoint.sh bash -c "source .venv/bin/activate && _DIMOS_COV=1 coverage run -m pytest --junitxml=junit.xml --durations=0 -m 'not (tool or mujoco)' && coverage combine && coverage xml"

- name: Run mypy
if: ${{ !cancelled() }}
run: |
/entrypoint.sh bash -c "source .venv/bin/activate && MYPYPATH=/opt/ros/humble/lib/python3.10/site-packages mypy dimos"

- name: Upload coverage report
if: github.event_name == 'push' && !cancelled()
uses: actions/upload-artifact@v5
- name: Upload coverage
uses: codecov/codecov-action@v6
with:
disable_search: true
fail_ci_if_error: true
files: ./coverage.xml
use_oidc: true
Comment thread
Dreamsorcerer marked this conversation as resolved.
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v6
with:
name: coverage-report
path: htmlcov/
report_type: test_results
use_oidc: true
Comment thread
Dreamsorcerer marked this conversation as resolved.

- name: Check disk space
if: failure()
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,20 @@ asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"

[tool.coverage.run]
branch = true
source = ["dimos"]
parallel = true
sigterm = true
concurrency = ["multiprocessing", "thread"]

[tool.coverage.report]
show_missing = true
skip_empty = true
exclude_also = [
'if TYPE_CHECKING',
'assert False',
': \.\.\.(\s*#.*)?$',
'^ +\.\.\.$',
'pytest.fail\('
]

[tool.largefiles]
max_size_kb = 50
Expand Down
Loading