Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around the issue with pip install -e on GitHub Ubuntu runners
Pin the GitHub runners to `ubuntu-20.04`. Long term solutions should be explored at some point in the future. This fixes an issue that arises due to the crossover of three different problems: 1. Ubuntu 22.04 will be used by default on 'ubuntu' runners on GitHub runners (actions/runner-images#6399). 2. Ubuntu 22.04 ships with `setuptools` version 59.x.x, which has a bug that does not allow an `--editable` installation of packages in `--user` mode. The flag `--user` is presumed regardless, as the location with packages is not writable by normal users (see pypa/pip#7953 and https://bugs.launchpad.net/ubuntu/+source/setuptools/+bug/1994016). 3. We need an `--editable` installation in order to run tests, as the `test_data` folder is loaded with respect to the package root, and not the test root (see for example: https://github.com/xsuite/xpart/blob/45d621ad060bc25d361835bde1ed985609a24c49/tests/test_single_rf_harmonic_matcher.py#L25) Signed-off-by: Szymon Łopaciuk <[email protected]>
- Loading branch information