Skip to content

Commit 19020fc

Browse files
CI: package-verification.yml is updated (normalization) (#353)
1 parent 9c4c0b9 commit 19020fc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/package-verification.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ jobs:
109109
python: "3"
110110
postgres: "17"
111111

112+
env:
113+
BASE_SIGN: "${{ matrix.platform }}-py${{ matrix.python }}-pg${{ matrix.postgres }}"
114+
112115
steps:
113116
- name: Prepare variables
114117
run: |
115-
RUN_CFG__NOW="$(date +'%Y%m%d_%H%M%S')"
116-
echo "RUN_CFG__NOW=$RUN_CFG__NOW" >> $GITHUB_ENV
117-
RUN_CFG__LOGS_DIR="logs-${{ matrix.platform }}-py${{ matrix.python }}-pg${{ matrix.postgres }}"
118-
echo "RUN_CFG__LOGS_DIR=$RUN_CFG__LOGS_DIR" >> $GITHUB_ENV
119-
RUN_CFG__DOCKER_IMAGE_NAME="tests-${{ matrix.platform }}-py${{ matrix.python }}-pg${{ matrix.postgres }}"
120-
echo "RUN_CFG__DOCKER_IMAGE_NAME=$RUN_CFG__DOCKER_IMAGE_NAME" >> $GITHUB_ENV
118+
echo "RUN_CFG__NOW=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV
119+
echo "RUN_CFG__LOGS_DIR=logs-${{ env.BASE_SIGN }}" >> $GITHUB_ENV
120+
echo "RUN_CFG__DOCKER_IMAGE_NAME=tests-${{ env.BASE_SIGN }}" >> $GITHUB_ENV
121121
echo "---------- [$GITHUB_ENV]"
122122
cat $GITHUB_ENV
123+
- name: Checkout
124+
uses: actions/checkout@v6
123125
- name: Prepare logs folder on the host
124126
run: mkdir -p "${{ env.RUN_CFG__LOGS_DIR }}"
125127
- name: Adjust logs folder permission
126128
run: chmod -R 777 "${{ env.RUN_CFG__LOGS_DIR }}"
127-
- name: Checkout
128-
uses: actions/checkout@v6
129129
- name: Build local image ${{ matrix.alpine }}
130130
run: docker build --build-arg PG_VERSION="${{ matrix.postgres }}" --build-arg PYTHON_VERSION="${{ matrix.python }}" -t "${{ env.RUN_CFG__DOCKER_IMAGE_NAME }}" -f Dockerfile--${{ matrix.platform }}.tmpl .
131131
- name: Run
@@ -134,5 +134,5 @@ jobs:
134134
uses: actions/upload-artifact@v7
135135
if: always() # IT IS IMPORTANT!
136136
with:
137-
name: testgres--test_logs--${{ env.RUN_CFG__NOW }}-${{ matrix.platform }}-py${{ matrix.python }}-pg${{ matrix.postgres }}-id${{ github.run_id }}
137+
name: testgres--test_logs--${{ env.RUN_CFG__NOW }}-${{ env.BASE_SIGN }}-id${{ github.run_id }}
138138
path: "${{ env.RUN_CFG__LOGS_DIR }}/"

0 commit comments

Comments
 (0)