https://pantsbuild.org/ logo
l

lively-gpu-26436

02/08/2023, 4:53 PM
Hello all, does anyone know how could I setup Pants in Github CI with multiple Python interpreters installed? I’m following this example https://github.com/pantsbuild/example-python/blob/main/.github/workflows/pants.yaml but it’s using Python3.9 which is needed by Pants, but in my project I have a default interpreter constraint of Python3.11
1
s

sparse-lifeguard-95737

02/08/2023, 4:56 PM
you can use
actions/setup-python
to install other Python interpreters: https://github.com/actions/setup-python
l

lively-gpu-26436

02/08/2023, 5:09 PM
Thanks @sparse-lifeguard-95737, I’m trying to use it like this, but of course what id does is run the steps in a Matrix, is there a way to just tell it: I want two Python interpreters in my path when running the steps?
l

lemon-oxygen-72498

02/09/2023, 3:48 PM
@lively-gpu-26436> you can call
actions/setup-python
multiple times in the same pipeline.
🙌 1
Simple as that (but not so intuitive yes 😄)!
l

lively-gpu-26436

02/10/2023, 7:34 AM
Thanks @lemon-oxygen-72498!
4 Views