|
67 | 67 | secrets: | |
68 | 68 | development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} access_token | ARTIFACTORY_ACCESS_TOKEN; |
69 | 69 | # yamllint enable rule:line-length |
| 70 | + - name: Check if python.exe or parent paths exist |
| 71 | + shell: bash |
| 72 | + continue-on-error: true |
| 73 | + run: | |
| 74 | + target="C:/hostedtoolcache/windows/Python/3.9.13/x64/python.exe" |
| 75 | + parents=( |
| 76 | + "C:/hostedtoolcache/windows/Python/3.9.13/x64" |
| 77 | + "C:/hostedtoolcache/windows/Python/3.9.13" |
| 78 | + "C:/hostedtoolcache/windows/Python" |
| 79 | + "C:/hostedtoolcache/windows" |
| 80 | + "C:/hostedtoolcache" |
| 81 | + "C:/hostedtoolcache" |
| 82 | + ) |
| 83 | + echo "Checking: $target" |
| 84 | + if [ -e "$target" ]; then |
| 85 | + echo "Exists: $target" |
| 86 | + else |
| 87 | + echo "Does not exist: $target" |
| 88 | + fi |
| 89 | + for path in "${parents[@]}"; do |
| 90 | + echo "Checking: $path" |
| 91 | + if [ -e "$path" ]; then |
| 92 | + echo "Exists: $path" |
| 93 | + ls -l "$path" |
| 94 | + else |
| 95 | + echo "Does not exist: $path" |
| 96 | + fi |
| 97 | + done |
| 98 | + - name: Check python installation folder |
| 99 | + shell: bash |
| 100 | + continue-on-error: true |
| 101 | + run: | |
| 102 | + echo "Attempting to locate python executable with 'which python' and 'which python3'" |
| 103 | + which python || echo "'python' not found in PATH" |
| 104 | + which python3 || echo "'python3' not found in PATH" |
| 105 | + echo "Python location (python --version):" |
| 106 | + python --version 2>/dev/null || echo "python command not available" |
| 107 | + echo "Python3 location (python3 --version):" |
| 108 | + python3 --version 2>/dev/null || echo "python3 command not available" |
70 | 109 | - name: Config Poetry |
71 | 110 | id: config |
72 | 111 | shell: bash |
|
76 | 115 | ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }} |
77 | 116 | POETRY_VIRTUALENVS_PATH: ${{ github.workspace }}/${{ inputs.poetry-virtualenvs-path }} |
78 | 117 | POETRY_CACHE_DIR: ${{ github.workspace }}/${{ inputs.poetry-cache-dir }} |
| 118 | + MISE_VERBOSE: 1 |
| 119 | + RUST_BACKTRACE: full |
79 | 120 | run: | |
80 | 121 | echo "POETRY_VIRTUALENVS_PATH=${POETRY_VIRTUALENVS_PATH}" >> "$GITHUB_ENV" |
81 | 122 | echo "POETRY_CACHE_DIR=${POETRY_CACHE_DIR}" >> "$GITHUB_ENV" |
|
0 commit comments