Skip to content

Commit 95862a4

Browse files
authored
Merge pull request #162 from ecmwf-actions/act/pyWrapWheel/reuploads
Act/py wrap wheel/reuploads
2 parents 1536c10 + 6d726d7 commit 95862a4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/python-wrapper-wheel.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
linux-wheel:
1919
name: Build manylinux_2_28
2020
strategy:
21+
fail-fast: false # NOTE primary reason for fail fast is the failure in the clean up step. Once fixed, consider true
2122
matrix:
2223
# TODO convert this to be matrix-friendly. Note it's a bit tricky since
2324
# we'd ideally not reexecute the compile step multiple times, but it
@@ -39,15 +40,16 @@ jobs:
3940
- run: cd /proj && PYTHONPATH=/buildscripts /buildscripts/wheel-linux.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
4041
- run: cd /proj && if [[ -f ./python_wrapper/post-build.sh ]] ; then ./python_wrapper/post-build.sh ; fi
4142
- run: cd /proj && /buildscripts/test-wheel.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
42-
- run: cd /proj && /buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
43+
- run: cd /proj && PYTHONPATH=/buildscripts /buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
4344
env:
4445
TWINE_USERNAME: __token__
45-
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_API_TOKEN }}
46+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
4647
# NOTE temporary thing until all the mess gets cleared
4748
- run: rm -rf ./* ./.git ./.github
4849
macos-wheel:
4950
name: Build macos wheel
5051
strategy:
52+
fail-fast: false # NOTE primary reason for fail fast is the failure in the clean up step. Once fixed, consider true
5153
matrix:
5254
arch_type: [ARM64, X64]
5355
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
@@ -70,18 +72,19 @@ jobs:
7072
token: ${{ secrets.GH_REPO_READ_TOKEN }}
7173
- run: rm -rf proj && git clone --depth=1 --branch="${GITHUB_REF#refs/heads/}" https://github.com/$GITHUB_REPOSITORY proj
7274
- run: |
73-
cd proj && $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/prepare_deps.sh ./python_wrapper/buildconfig 3.11
75+
uv python install python"${{ matrix.python_version }}"
76+
cd proj && $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/prepare_deps.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
7477
- run: |
7578
cd proj
7679
if [[ -f ./python_wrapper/pre-compile.sh ]] ; then ./python_wrapper/pre-compile.sh ; fi
7780
PATH="$PATH:$GITHUB_WORKSPACE/ecbuild/bin/" $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/compile.sh ./python_wrapper/buildconfig
7881
- run: |
7982
cd proj
80-
rm -rf /tmp/buildvenv && uv python install python3.11 && uv venv --python python3.11 /tmp/buildvenv && source /tmp/buildvenv/bin/activate && uv pip install build twine delocate
81-
PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/wheel-linux.sh ./python_wrapper/buildconfig 3.11
83+
rm -rf /tmp/buildvenv && uv venv --python python"${{ matrix.python_version }}" /tmp/buildvenv && source /tmp/buildvenv/bin/activate && uv pip install build twine delocate setuptools requests
84+
PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/wheel-linux.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
8285
if [[ -f ./python_wrapper/post-build.sh ]] ; then ./python_wrapper/post-build.sh ; fi
83-
$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/test-wheel.sh ./python_wrapper/buildconfig 3.11
84-
$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
86+
$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/test-wheel.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
87+
PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
8588
env:
8689
TWINE_USERNAME: __token__
8790
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)