Right now this fails because the pip module is not available. A more comprehensive fix is likely possible, but for now just moving before-script-linuxbefore the sccache installation allows the user to install the python3-pip package.
More generally, running the before script as early as possible is a good thing, as it allows workarounds for any future problems that may arise like this.
Refs https://github.com/PyO3/maturin-action/issues/249
Right now this fails because the
pip
module is not available. A more comprehensive fix is likely possible, but for now just movingbefore-script-linux
before the sccache installation allows the user to install thepython3-pip
package.More generally, running the before script as early as possible is a good thing, as it allows workarounds for any future problems that may arise like this.