Skip to content

Commit 0656475

Browse files
chore: revert test build
1 parent 7d9b2fb commit 0656475

File tree

1 file changed

+23
-34
lines changed

1 file changed

+23
-34
lines changed

.github/workflows/release-python.yml

+23-34
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
description: "Build and publish both qcs-sdk-python and qcs-sdk-python-grpc-web wheels to PyPI"
1111
type: boolean
1212
default: false
13-
pull_request:
1413

1514
jobs:
1615
is-python-release:
@@ -26,15 +25,13 @@ jobs:
2625

2726
macos:
2827
runs-on: macos-latest
29-
# needs: [is-python-release, should-publish-wheels]
28+
needs: [is-python-release, should-publish-wheels]
3029
env:
3130
CXXFLAGS: "-std=c++11 -stdlib=libc++"
3231
strategy:
3332
matrix:
34-
# package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
35-
package-name: [qcs-sdk-python-grpc-web]
36-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
37-
python-version: ["3.12"]
33+
package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
34+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3835
target: [x86_64-apple-darwin, aarch64-apple-darwin]
3936
steps:
4037
- uses: actions/checkout@v4
@@ -52,13 +49,12 @@ jobs:
5249

5350
linux-x86_64:
5451
runs-on: ubuntu-latest
55-
# needs: [is-python-release, should-publish-wheels]
52+
needs: [is-python-release, should-publish-wheels]
5653
env:
5754
CXXFLAGS: "-std=c++11"
5855
strategy:
5956
matrix:
60-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
61-
python-version: ["3.12"]
57+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
6258
steps:
6359
- uses: actions/checkout@v4
6460
- name: Install protoc
@@ -75,13 +71,12 @@ jobs:
7571

7672
linux-aarch64:
7773
runs-on: ubuntu-24.04-arm
78-
# needs: [is-python-release, should-publish-wheels]
74+
needs: [is-python-release, should-publish-wheels]
7975
env:
8076
CXXFLAGS: "-std=c++11"
8177
strategy:
8278
matrix:
83-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
84-
python-version: ["3.12"]
79+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
8580
steps:
8681
- uses: actions/checkout@v4
8782
- name: Install protoc
@@ -98,13 +93,12 @@ jobs:
9893

9994
linux-grpc-web-x86_64:
10095
runs-on: ubuntu-latest
101-
# needs: [is-python-release, should-publish-wheels]
96+
needs: [is-python-release, should-publish-wheels]
10297
env:
10398
CXXFLAGS: "-std=c++11"
10499
strategy:
105100
matrix:
106-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
107-
python-version: ["3.12"]
101+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
108102
steps:
109103
- uses: actions/checkout@v4
110104
- name: Install protoc
@@ -121,13 +115,12 @@ jobs:
121115

122116
linux-grpc-web-ppc64le:
123117
runs-on: ubuntu-latest
124-
# needs: [is-python-release, should-publish-wheels]
118+
needs: [is-python-release, should-publish-wheels]
125119
env:
126120
CXXFLAGS: "-std=c++11"
127121
strategy:
128122
matrix:
129-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
130-
python-version: ["3.12"]
123+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
131124
steps:
132125
- uses: actions/checkout@v4
133126
- name: Install protoc
@@ -144,13 +137,11 @@ jobs:
144137

145138
windows:
146139
runs-on: windows-latest
147-
# needs: [is-python-release, should-publish-wheels]
140+
needs: [is-python-release, should-publish-wheels]
148141
strategy:
149142
matrix:
150-
# package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
151-
package-name: [qcs-sdk-python-grpc-web]
152-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
153-
python-version: ["3.12"]
143+
package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
144+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
154145
steps:
155146
- name: Enable long path support
156147
run: |
@@ -172,15 +163,13 @@ jobs:
172163

173164
sdist:
174165
runs-on: ubuntu-latest
175-
# needs: is-python-release
166+
needs: is-python-release
176167
env:
177168
CXXFLAGS: "-std=c++11"
178169
strategy:
179170
matrix:
180-
# package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
181-
package-name: [qcs-sdk-python-grpc-web]
182-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
183-
python-version: ["3.12"]
171+
package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
172+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
184173
steps:
185174
- uses: actions/checkout@v4
186175
- name: Install protoc
@@ -220,9 +209,9 @@ jobs:
220209
merge-multiple: true
221210
- name: List wheels to upload
222211
run: ls -R wheels
223-
# - name: Publish to PyPI
224-
# uses: messense/maturin-action@v1
225-
# with:
226-
# command: upload
227-
# args: --skip-existing wheels/*
228-
# maturin-version: v1.8.2 # coordinate this with crates/python/pyproject.toml
212+
- name: Publish to PyPI
213+
uses: messense/maturin-action@v1
214+
with:
215+
command: upload
216+
args: --skip-existing wheels/*
217+
maturin-version: v1.8.2 # coordinate this with crates/python/pyproject.toml

0 commit comments

Comments
 (0)