@@ -110,7 +110,12 @@ jobs:
110
110
python-version : ${{ env.PYTHON_VERSION }}
111
111
working-directory : ${{ inputs.working-directory }}
112
112
113
- - name : Import published package
113
+ - uses : actions/download-artifact@v5
114
+ with :
115
+ name : dist
116
+ path : ${{ inputs.working-directory }}/dist/
117
+
118
+ - name : Import dist package
114
119
shell : bash
115
120
working-directory : ${{ inputs.working-directory }}
116
121
env :
@@ -127,15 +132,7 @@ jobs:
127
132
# sometimes a delay in availability on test pypi
128
133
run : |
129
134
uv venv
130
- VIRTUAL_ENV=.venv uv pip install \
131
- --extra-index-url https://test.pypi.org/simple/ \
132
- "$PKG_NAME==$VERSION" || \
133
- ( \
134
- sleep 5 && \
135
- VIRTUAL_ENV=.venv uv pip install \
136
- --extra-index-url https://test.pypi.org/simple/ \
137
- "$PKG_NAME==$VERSION" \
138
- )
135
+ VIRTUAL_ENV=.venv uv pip install dist/*.whl
139
136
140
137
# Replace all dashes in the package name with underscores,
141
138
# since that's how Python imports packages with dashes in the name.
@@ -147,17 +144,15 @@ jobs:
147
144
run : uv sync --group test --group test_integration
148
145
working-directory : ${{ inputs.working-directory }}
149
146
150
- # Overwrite the local version of the package with the test PyPI version.
147
+ # Overwrite the local version of the package with the built PyPI version.
151
148
- name : Import published package (again)
152
149
working-directory : ${{ inputs.working-directory }}
153
150
shell : bash
154
151
env :
155
152
PKG_NAME : ${{ needs.build.outputs.pkg-name }}
156
153
VERSION : ${{ needs.build.outputs.version }}
157
154
run : |
158
- VIRTUAL_ENV=.venv uv pip install \
159
- --extra-index-url https://test.pypi.org/simple/ \
160
- "$PKG_NAME==$VERSION"
155
+ VIRTUAL_ENV=.venv uv pip install dist/*.whl
161
156
162
157
- name : Run unit tests
163
158
run : make tests
0 commit comments