Skip to content

Add validation + compatibility tests for DeepLabCut-live#56

Draft
deruyter92 wants to merge 9 commits intocy/pre-release-fixes-2.0from
jaap/add_compatibility_tests
Draft

Add validation + compatibility tests for DeepLabCut-live#56
deruyter92 wants to merge 9 commits intocy/pre-release-fixes-2.0from
jaap/add_compatibility_tests

Conversation

@deruyter92
Copy link

No description provided.

@deruyter92 deruyter92 changed the title Jaap/add compatibility tests Add compatibility tests for DeepLabCut-live Feb 27, 2026
@deruyter92 deruyter92 changed the title Add compatibility tests for DeepLabCut-live Add validation + compatibility tests for DeepLabCut-live Feb 27, 2026
Copy link

@C-Achard C-Achard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks !

Comment on lines +4 to +7
from dlclivegui.services.dlc_processor import validate_pose_array


@pytest.mark.unit

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the extra tests !


@dataclass(slots=True, frozen=True)
class PoseSource:
backend: str # e.g. "DLCLive"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make this an Enum later, really cool for adding later backends (e.g. POET)

Copy link

@C-Achard C-Achard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deruyter92 If you'd like I can merge #55 right now, so then we can see how the tests go in CI ?

@deruyter92
Copy link
Author

Yes great thanks. Sorry I see that I didn't install the pre-commit

@C-Achard
Copy link

Sorry, in the above I meant #55. It is now merged, happy to take care of conflicts/CI if you're busy !

@C-Achard C-Achard mentioned this pull request Feb 27, 2026
20 tasks
@C-Achard C-Achard force-pushed the jaap/add_compatibility_tests branch from 54ee55e to 693c931 Compare February 27, 2026 15:09
Remove the earlier pytest commands block and update the tox 'commands' to run pytest with the marker excluding both 'hardware' and 'dlclive_compat'. Adjust coverage invocation to use the installed package path (--cov={envsitepackagesdir}/dlclivegui) and emit per-env XML coverage files (.coverage.{envname}.xml). This aligns tox behavior with the GitHub Actions job and removes the prior posargs-based command duplication.
strategy:
fail-fast: false
matrix:
python: ['3.11']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: why 3.11?

Update the GitHub Actions testing matrix to run on Python 3.12 instead of 3.11. This moves CI to test against the newer Python runtime while keeping existing matrix include entries unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants