Skip to content

tests: add durations argument to pytest config#252

Merged
johannaSommer merged 1 commit intomainfrom
tests/duration-logging
Jul 11, 2025
Merged

tests: add durations argument to pytest config#252
johannaSommer merged 1 commit intomainfrom
tests/duration-logging

Conversation

@johannaSommer
Copy link
Copy Markdown
Member

Description

This PR extends the newly introduced pytest configuration in the pyproject.toml with the duration argument, which helps us keep track of the computation time on some experiments. Specifically for the CPU tests run on GitHub action, we will use this to determine which tests will be marked as pytest.mark.slow, meaning they will only run during the nightly tests.

Related Issue

None.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Verified updated logging locally.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

None.

@johannaSommer johannaSommer requested a review from nifleisch July 10, 2025 15:34
Copy link
Copy Markdown
Collaborator

@nifleisch nifleisch left a comment

Choose a reason for hiding this comment

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

LGTM 🙌

@johannaSommer johannaSommer merged commit e1ab35f into main Jul 11, 2025
6 checks passed
@johannaSommer johannaSommer deleted the tests/duration-logging branch July 11, 2025 09:24
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