@@ -110,7 +110,7 @@ jobs:
110110 pytest GPy/testing
111111
112112 build-windows :
113- # if: github.event_name == 'release'
113+ if : github.event_name == 'release'
114114 strategy :
115115 matrix :
116116 os : [windows-latest]
@@ -143,7 +143,7 @@ jobs:
143143 path : dist
144144
145145 build-macos :
146- # if: github.event_name == 'release'
146+ if : github.event_name == 'release'
147147 strategy :
148148 matrix :
149149 os : [macos-latest]
@@ -175,7 +175,7 @@ jobs:
175175 path : dist/*
176176
177177 build-linux :
178- # if: github.event_name == 'release'
178+ if : github.event_name == 'release'
179179 strategy :
180180 matrix :
181181 python : ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
@@ -226,81 +226,6 @@ jobs:
226226 name : dist-artifacts-manylinux-${{ matrix.python }}
227227 path : ${{ steps.get-wheel-name.outputs.wheel-name }}
228228
229- deploy-test :
230- runs-on : ubuntu-latest
231- needs : [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
232- # if: github.event_name == 'release'
233- steps :
234- - name : Checkout
235- uses : actions/checkout@v4
236-
237- - name : Setup python
238- uses : actions/setup-python@v4
239- with :
240- python-version : ' 3.9'
241-
242- - name : Install twine
243- run : |
244- pip install --upgrade pip
245- pip install twine
246-
247- - name : Download all artifacts to a specific directory
248- uses : actions/download-artifact@v3
249- with :
250- path : dist
251-
252- - name : List all downloaded artifacts
253- run : |
254- echo "Listing all downloaded artifacts:"
255- ls -lh dist
256-
257- - name : Create dist directory
258- run : mkdir -p dist
259-
260- - name : List tar files before extraction
261- run : |
262- echo "Listing all tar files before extraction:"
263- find dist -name "*.tar.gz"
264-
265- - name : Extract tar.gz files
266- run : |
267- for artifact in dist/*; do
268- if [[ "$artifact" == *.tar.gz ]]; then
269- echo "Extracting $artifact"
270- tar -tzf "$artifact"
271- tar -xzf "$artifact" -C dist
272- rm "$artifact"
273- fi
274- done
275-
276- - name : Inspect wheel files
277- run : |
278- ls -R dist
279-
280- - name : Move files from subdirectories
281- run : |
282- for subdirectory in dist/*/; do
283- dir_name=$(basename "$subdirectory")
284- mv "$subdirectory"* dist/
285- rm -r "$subdirectory"
286- echo "Moved files from '$dir_name' to 'dist/'"
287- done
288-
289- - name : Move files from subdirectories
290- run : |
291- for subdirectory in dist/*/; do
292- if [ -d "$subdirectory" ]; then
293- dir_name=$(basename "$subdirectory")
294- mv "$subdirectory"* dist/
295- rm -r "$subdirectory"
296- echo "Moved files from '$dir_name' to 'dist/'"
297- fi
298- done
299-
300- - name : Inspect wheel files
301- run : |
302- ls -R dist
303-
304229 deploy :
305230 runs-on : ubuntu-latest
306231 needs : [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
0 commit comments