diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c2449228c7..dbe5967e0d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -54,7 +54,10 @@ jobs: java-version: 17 distribution: temurin architecture: ${{ matrix.architecture }} + - run: git fetch --tags --force + - run: python3 -c "from sysconfig import get_paths as gp; print(gp())" + - run: | chmod +x gradlew ./gradlew photon-targeting:build photon-lib:build -i -PpythonExecutable=python${{ matrix.python_version }} @@ -164,11 +167,11 @@ jobs: /build/venv/bin/cross-pip --disable-pip-version-check install -r photon-lib/py/build_requirements.txt - run: git fetch --tags --force - - run: ./gradlew photon-lib:tasks + - run: ./gradlew photon-lib:tasks -PpythonExecutable=/build/venv/bin/cross-python - name: Install RoboRIO Toolchain run: ./gradlew installRoboRioToolchain -PpythonExecutable=/build/venv/bin/cross-python if: matrix.os.name == 'roborio' - - run: ./gradlew photon-lib:tasks + - run: ./gradlew photon-lib:tasks -PpythonExecutable=/build/venv/bin/cross-python - run: | chmod +x gradlew