diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml new file mode 100644 index 0000000000000..4962b88362a3b --- /dev/null +++ b/.github/actions/setup-python/action.yml @@ -0,0 +1,31 @@ +name: Setup Python and install requirements +inputs: + python-version: + required: true + architecture: + default: x64 +runs: + using: composite + steps: + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ inputs.python-version }} + architecture: ${{ inputs.architecture }} + + - name: Fix $PATH on macOS + run: | + # On macOS, the Python version we installed above is too late in $PATH + # to be effective if using "bash -l" (which we need for code that works + # with Conda envs). + cat >> ~/.bash_profile <=6.2.5 +pytest-xdist +pytest-cov +pytest-asyncio>=0.17