@@ -126,37 +126,85 @@ jobs:
126126 run : ./infra/scripts/helm/push-helm-charts.sh $VERSION_WITHOUT_PREFIX
127127
128128 publish-python-sdk :
129- runs-on : ubuntu-latest
129+ runs-on : ${{ matrix.os }}
130+ strategy :
131+ fail-fast : false
132+ matrix :
133+ python-version : [ 3.7, 3.8, 3.9, 3.10 ]
134+ os : [ ubuntu-latest, macOS-latest ]
135+ compile-go : [ True ]
136+ include :
137+ - python-version : 3.7
138+ os : ubuntu-latest
139+ compile-go : False
130140 env :
131141 TWINE_USERNAME : __token__
132142 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
133- container : python:3.7
143+ COMPILE_GO : ${{ matrix.compile-go }}
134144 steps :
135145 - uses : actions/checkout@v2
146+ - name : Setup Python
147+ id : setup-python
148+ uses : actions/setup-python@v2
149+ with :
150+ python-version : ${{ matrix.python-version }}
151+ architecture : x64
152+ - name : Setup Go
153+ id : setup-go
154+ uses : actions/setup-go@v2
155+ with :
156+ go-version : 1.17.7
157+ - name : Upgrade pip version
158+ run : |
159+ pip install --upgrade "pip>=21.3.1"
136160 - name : Install pip-tools
137161 run : pip install pip-tools
138162 - name : Install dependencies
139- run : make install-python-ci-dependencies PYTHON=3.7
163+ run : make install-python-ci-dependencies PYTHON=${{ matrix.python-version }}
140164 - name : Publish Python Package
141165 run : |
142166 cd sdk/python
143167 python3 -m pip install --user --upgrade setuptools wheel twine
144168 python3 setup.py sdist bdist_wheel
145- python3 -m twine upload --verbose dist/*
169+ python3 -m twine upload --verbose dist/*.whl
146170
147171 publish-python-sdk-no-telemetry :
148- runs-on : ubuntu-latest
172+ runs-on : ${{ matrix.os }}
173+ strategy :
174+ fail-fast : false
175+ matrix :
176+ python-version : [ 3.7, 3.8, 3.9, 3.10 ]
177+ os : [ ubuntu-latest, macOS-latest ]
178+ compile-go : [ True ]
179+ include :
180+ - python-version : 3.7
181+ os : ubuntu-latest
182+ compile-go : False
149183 needs : get-version
150184 env :
151185 TWINE_USERNAME : __token__
152186 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
153- container : python:3.7
187+ COMPILE_GO : ${{ matrix.compile-go }}
154188 steps :
155189 - uses : actions/checkout@v2
190+ - name : Setup Python
191+ id : setup-python
192+ uses : actions/setup-python@v2
193+ with :
194+ python-version : ${{ matrix.python-version }}
195+ architecture : x64
196+ - name : Setup Go
197+ id : setup-go
198+ uses : actions/setup-go@v2
199+ with :
200+ go-version : 1.17.7
201+ - name : Upgrade pip version
202+ run : |
203+ pip install --upgrade "pip>=21.3.1"
156204 - name : Install pip-tools
157205 run : pip install pip-tools
158206 - name : Install dependencies
159- run : make install-python-ci-dependencies PYTHON=3.7
207+ run : make install-python-ci-dependencies PYTHON=${{ matrix.python-version }}
160208 - name : Publish Python Package
161209 env :
162210 SETUPTOOLS_SCM_PRETEND_VERSION : ${{ needs.get-version.outputs.version_without_prefix }}
@@ -166,7 +214,7 @@ jobs:
166214 sed -i 's/NAME = "feast"/NAME = "feast-no-telemetry"/g' setup.py
167215 python3 -m pip install --user --upgrade setuptools wheel twine
168216 python3 setup.py sdist bdist_wheel
169- python3 -m twine upload --verbose dist/*
217+ python3 -m twine upload --verbose dist/*.whl
170218
171219 publish-java-sdk :
172220 container : maven:3.6-jdk-11
0 commit comments