-
Can you explain the pros and cons of both solutions?
vs
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Thank you for your detailed answer. But I think you miss the main point of my question. I will rephrase. My job needs Python 3.7 to run. Today I have two solutions: actions/setup-python or container: python:3.7. In both cases, my job will pass. What’s the pro and cons of these two solutions? |
Beta Was this translation helpful? Give feedback.
-
@tetienne Containers are only an option on Linux. If you need to test your python application on Windows or MacOS then using setup-python is the right option. It can also be a lot faster as in many cases you can use a python that is already downloaded on the runner rather than having to wait for a container to download. |
Beta Was this translation helpful? Give feedback.
-
I have a few summary here for your reference:
|
Beta Was this translation helpful? Give feedback.
-
Oh I was not aware of container restricted only to Linux host. I will try to perform some tests to see the speed difference between both. But indeed it makes sense. Thx for your answer. |
Beta Was this translation helpful? Give feedback.
@tetienne Containers are only an option on Linux. If you need to test your python application on Windows or MacOS then using setup-python is the right option. It can also be a lot faster as in many cases you can use a python that is already downloaded on the runner rather than having to wait for a container to download.