Skip to content

Commit 9abefd1

Browse files
committed
debugging
1 parent 7421e3d commit 9abefd1

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/actions/config-poetry/action.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,45 @@ runs:
6767
secrets: |
6868
development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} access_token | ARTIFACTORY_ACCESS_TOKEN;
6969
# 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"
70109
- name: Config Poetry
71110
id: config
72111
shell: bash
@@ -76,6 +115,8 @@ runs:
76115
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
77116
POETRY_VIRTUALENVS_PATH: ${{ github.workspace }}/${{ inputs.poetry-virtualenvs-path }}
78117
POETRY_CACHE_DIR: ${{ github.workspace }}/${{ inputs.poetry-cache-dir }}
118+
MISE_VERBOSE: 1
119+
RUST_BACKTRACE: full
79120
run: |
80121
echo "POETRY_VIRTUALENVS_PATH=${POETRY_VIRTUALENVS_PATH}" >> "$GITHUB_ENV"
81122
echo "POETRY_CACHE_DIR=${POETRY_CACHE_DIR}" >> "$GITHUB_ENV"

.github/actions/config-poetry/config-poetry.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ set_build_env() {
1313
}
1414

1515
config_poetry() {
16+
echo "add repox"
1617
jf config add repox --artifactory-url "$ARTIFACTORY_URL" --access-token "$ARTIFACTORY_ACCESS_TOKEN"
18+
echo "poetry-config"
1719
jf poetry-config --server-id-resolve repox --repo-resolve "$ARTIFACTORY_PYPI_REPO"
20+
echo "poetry install"
1821
jf poetry install --build-name="$PROJECT" --build-number="$BUILD_NUMBER"
1922
}
2023

0 commit comments

Comments
 (0)