Skip to content

test: ensure everything works with minimal declared dependencies, test all examples#702

Merged
tlambert03 merged 8 commits intopyapp-kit:mainfrom
tlambert03:fix-examples
Jun 7, 2025
Merged

test: ensure everything works with minimal declared dependencies, test all examples#702
tlambert03 merged 8 commits intopyapp-kit:mainfrom
tlambert03:fix-examples

Conversation

@tlambert03
Copy link
Copy Markdown
Member

fixes #697

This PR

  1. Tests all of the examples in our docs/examples folder to make sure they run without error
  2. Adds a test group that uses only the minimal stated dependencies, so that we're not polluted by "optional" dependencies

- Added dependency checks for 'pint', 'numpy', and 'scipy' in example scripts.
- Updated image example to use pathlib for file paths.
- Introduced a new test file to ensure example scripts run without errors.
- Refactored widget tests to conditionally include numpy-related tests.
- Improved GitHub Actions workflow to test on multiple OS environments.
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.28%. Comparing base (6179a0d) to head (fc5069f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #702      +/-   ##
==========================================
+ Coverage   88.73%   89.28%   +0.54%     
==========================================
  Files          40       40              
  Lines        4812     4816       +4     
==========================================
+ Hits         4270     4300      +30     
+ Misses        542      516      -26     

☔ 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.

@tlambert03 tlambert03 merged commit c559e7e into pyapp-kit:main Jun 7, 2025
33 checks passed
@tlambert03 tlambert03 deleted the fix-examples branch June 7, 2025 16:47
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.

Error in example code when pandas module not available

1 participant