Hello all, does anyone know how could I setup Pant...
# general
l
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
you can use
actions/setup-python
to install other Python interpreters: https://github.com/actions/setup-python
l
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
@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
Thanks @lemon-oxygen-72498!