Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: Fix handling of python packages.
GitHub Actions doesn't have python locations in PATH and different runners might have different configuration for default python location and versions. For example, on some runners python2 might be installed or not. Missing PATH causes weird situations on older branches where during one run our scripts can locate just installed flake8 and can't do that on a different run. But this might also create other unpredictable issues on all branches. It's required to use actions/setup-python@v2 in order to have predictable version of python installed and paths correctly configured. Due to some bugs in GHA itself it doesn't set $HOME/.local/bin into PATH, so we have to do that manually for now in order to use '--user'. This might be fixed later in actions/setup-python or in base runners. We already setting it for DPDK 20.11 (I think the issue was spotted but not fully investigated). Moving PATH updates to a separate step to make them more explicit and available for all steps of the job. Unfortunately actions/setup-python@v2 also makes invisible python packages installed from Ubuntu repositories. Switching them to 'pip3 install'. Fixes: 6cb2f5a ("github: Add GitHub Actions workflow.") Reported-by: Numan Siddique <[email protected]> Acked-by: Aaron Conole <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information