@@ -110,7 +110,12 @@ jobs:
110110 python-version : ${{ env.PYTHON_VERSION }}
111111 working-directory : ${{ inputs.working-directory }}
112112
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
114119 shell : bash
115120 working-directory : ${{ inputs.working-directory }}
116121 env :
@@ -127,15 +132,7 @@ jobs:
127132 # sometimes a delay in availability on test pypi
128133 run : |
129134 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
139136
140137 # Replace all dashes in the package name with underscores,
141138 # since that's how Python imports packages with dashes in the name.
@@ -147,17 +144,15 @@ jobs:
147144 run : uv sync --group test --group test_integration
148145 working-directory : ${{ inputs.working-directory }}
149146
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.
151148 - name : Import published package (again)
152149 working-directory : ${{ inputs.working-directory }}
153150 shell : bash
154151 env :
155152 PKG_NAME : ${{ needs.build.outputs.pkg-name }}
156153 VERSION : ${{ needs.build.outputs.version }}
157154 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
161156
162157 - name : Run unit tests
163158 run : make tests
0 commit comments