Skip to content

Improve dependencies management for users and testing#275

Merged
FlxPo merged 4 commits intomainfrom
pin-versions
Mar 13, 2026
Merged

Improve dependencies management for users and testing#275
FlxPo merged 4 commits intomainfrom
pin-versions

Conversation

@FlxPo
Copy link
Contributor

@FlxPo FlxPo commented Mar 13, 2026

Motivation

  • Make CI reproducible by pinning tested dependency sets instead of resolving floating versions on every run (to avoid errors such as the one encountered in External mobility surveys #274, where a polars release generated an error unrelated to the PR).
  • Add an explicit minimum-dependency compatibility check without slowing down PR validation too much.

Changes

  • Added version bounds to Python dependencies in pyproject.toml.
  • Added pinned and minimum dependency snapshots in requirements-ci.txt and requirements-min.txt (generated with uv, see the first line of each file).
  • Refactored CI into a reusable workflow in test-reusable.yml that can run with different requirements.
  • Added a minimum-dependency workflow in install-and-test-min.yml that runs only on pushes to main.
  • Updated environment-test.yml so micromamba manages only Python, uv, and osmium-tool.

FlxPo added 4 commits March 13, 2026 13:28
… tests with lower bound versions of the dependencies
* add external parsers parameters

* clarify role spearation between MobilitySurvey and external LocalMobilitySurvey classes

* add get_additional_inputs method to MobilitySurvey

* add type casts to avoid errors with polars 1.39.0
… tests with lower bound versions of the dependencies
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.92%. Comparing base (d7e75e6) to head (241f8ae).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   58.90%   58.92%   +0.01%     
==========================================
  Files         128      128              
  Lines        6712     6715       +3     
==========================================
+ Hits         3954     3957       +3     
  Misses       2758     2758              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FlxPo FlxPo added the enhancement New feature or request label Mar 13, 2026
@FlxPo FlxPo self-assigned this Mar 13, 2026
@FlxPo FlxPo merged commit deaf5e9 into main Mar 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant