Skip to content

Commit 9afe8a7

Browse files
committed
test: update workflow
1 parent 3ecfa4b commit 9afe8a7

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.github/scripts/build-musllinux-arm64.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ for version in 3.8 3.9 3.10 3.11 3.12 3.13 3.14; do
100100
done
101101

102102
# Update version for release (if triggered by tag)
103+
echo "GITHUB_REF: '$GITHUB_REF'"
103104
if [ "${GITHUB_REF#refs/tags/v}" != "$GITHUB_REF" ]; then
104105
pyenv shell 3.9
105-
106+
106107
# Install bump-my-version
107108
python -m pip install bump-my-version
108109
TAG_NAME=${GITHUB_REF#refs/tags/v}

.github/workflows/build_musllinux_arm64_wheels.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ jobs:
2626
runs-on: [self-hosted, linux, arm64, ubuntu-latest]
2727
if: ${{ !github.event.pull_request.draft }}
2828
steps:
29+
- name: Setup Python and install twine for PyPI upload
30+
run: |
31+
echo "=== Setting up Python for PyPI upload ==="
32+
# Install pip if not available
33+
sudo apt-get update
34+
sudo apt-get install -y python3-pip
35+
python3 --version
36+
python3 -m pip --version
37+
echo "=== Installing twine ==="
38+
python3 -m pip install --upgrade pip --break-system-packages
39+
python3 -m pip install twine --break-system-packages
40+
if ! python3 -m twine --version; then
41+
echo "ERROR: Twine installation failed!"
42+
exit 1
43+
fi
44+
echo "Twine installed successfully"
45+
2946
- name: Setup Docker permissions
3047
run: |
3148
# Ensure Docker is running
@@ -71,6 +88,7 @@ jobs:
7188
fi
7289
echo "Test success marker found. All tests completed successfully."
7390
echo "Proceeding with wheel upload..."
91+
ls -la ./dist/
7492
continue-on-error: false
7593
# Upload wheels to release
7694
- name: Upload wheels to release
@@ -83,24 +101,6 @@ jobs:
83101
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
84102
continue-on-error: true
85103

86-
- name: Setup Python and install twine for PyPI upload
87-
run: |
88-
echo "=== Setting up Python for PyPI upload ==="
89-
# Install pip if not available
90-
sudo apt-get update
91-
sudo apt-get install -y python3-pip
92-
python3 --version
93-
python3 -m pip --version
94-
echo "=== Installing twine ==="
95-
python3 -m pip install --upgrade pip
96-
python3 -m pip install twine
97-
if ! python3 -m twine --version; then
98-
echo "ERROR: Twine installation failed!"
99-
exit 1
100-
fi
101-
echo "Twine installed successfully"
102-
ls -la ./dist/
103-
104104
# Upload to PyPI
105105
- name: Upload pypi
106106
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)