Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AndreasAlbertQC
Copy link
Collaborator

Motivation

While working on #134, we noticed that we currently do not have stringent testing to ensure that our package works without optional dependencies.

Changes

  • Added optional-dependencies to pyproject.toml
  • Refactored pixi environments such that we have separate testing environments with and without optional dependencies installed. The default environment still has the optional dependencies.
  • Added a pytest marker with_optionals. This marker is used to mark all tests that require optional dependencies.
  • In CI, we now use environments without optional dependencies to execute all tests that do not use them. A separate environment is used to run tests that require optionals to be installed.

@github-actions github-actions bot added the ci label Sep 4, 2025
@codecov
Copy link

codecov bot commented Sep 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (028055d) to head (13af106).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #135   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           45        45           
  Lines         2574      2577    +3     
=========================================
+ Hits          2574      2577    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndreasAlbertQC AndreasAlbertQC marked this pull request as ready for review September 4, 2025 14:16
Copy link
Member

@borchero borchero left a comment

Choose a reason for hiding this comment

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

Thanks, really useful! There was at least one time where we only noticed an issue in the conda-forge build 😅

@AndreasAlbertQC AndreasAlbertQC merged commit 4fd1b4d into main Sep 4, 2025
22 checks passed
@AndreasAlbertQC AndreasAlbertQC deleted the optionals branch September 4, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants