pymc-devs / pytensor

PyTensor allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays.
https://pytensor.readthedocs.io
Other
308 stars 94 forks source link

Use environment.yml (or something like that) in CI #449

Open ricardoV94 opened 10 months ago

ricardoV94 commented 10 months ago

Description

The CI dependencies are completely dissociated from the conda pytensor-dev environment specified by environment.yml.

This led to need a separate commit in #448 that should have gone into #446

https://github.com/pymc-devs/pytensor/blob/a970407f5c3c4994d346a41065e335e89882dcfb/.github/workflows/test.yml#L139-L152

lmmx commented 7 months ago

The only tricky bit here is that you can't parameterise the Python version of an environment.yml, but we can do the installation of the parameterised Python version and the environments file in the same pass using this pattern