pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.67k stars 2k forks source link

Bump PyTensor dependency and support Python 3.12 #7203

Closed ricardoV94 closed 6 months ago

ricardoV94 commented 6 months ago

Description

Related Issue

Checklist

Type of change


πŸ“š Documentation preview πŸ“š: https://pymc--7203.org.readthedocs.build/en/7203/

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.86%. Comparing base (aa679f3) to head (fc98122). Report is 6 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pymc-devs/pymc/pull/7203/graphs/tree.svg?width=650&height=150&src=pr&token=JFuXtOJ4Cb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)](https://app.codecov.io/gh/pymc-devs/pymc/pull/7203?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) ```diff @@ Coverage Diff @@ ## main #7203 +/- ## ========================================== - Coverage 92.29% 91.86% -0.44% ========================================== Files 100 100 Lines 16875 16875 ========================================== - Hits 15575 15502 -73 - Misses 1300 1373 +73 ``` | [Files](https://app.codecov.io/gh/pymc-devs/pymc/pull/7203?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) | Coverage Ξ” | | |---|---|---| | [pymc/sampling/forward.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7203?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9zYW1wbGluZy9mb3J3YXJkLnB5) | `95.90% <ΓΈ> (ΓΈ)` | | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/pymc-devs/pymc/pull/7203/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)
ricardoV94 commented 6 months ago

Temporarily running the whole suite on 3.12 only

ricardoV94 commented 6 months ago

All tests passed on 3.12: https://github.com/pymc-devs/pymc/actions/runs/8379574806/job/22948777361?pr=7203

Going to revert so we still run some of the tests on 3.9

ricardoV94 commented 6 months ago

That should be fine 99% of the time, but for those crazy edge cases maybe we want some sort of pre-release workflow that runs the whole matrix?

I'm inclined not to :)