Skip to content

Commit 5f9682f

Browse files
committed
.
1 parent 69ec656 commit 5f9682f

File tree

1 file changed

+27
-50
lines changed

1 file changed

+27
-50
lines changed

.github/workflows/pysplashsurf_CI.yml

Lines changed: 27 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
path: pysplashsurf/pysplashsurf/
3939

4040
linux:
41-
name: Build wheels
41+
name: Build wheels for Linux
4242
needs: generate-stub
4343
runs-on: ${{ matrix.platform.runner }}
4444
strategy:
@@ -93,17 +93,17 @@ jobs:
9393
path: wheelhouse
9494

9595
macos:
96-
name: Build wheels
96+
name: Build wheels for macOS
9797
needs: generate-stub
9898
runs-on: ${{ matrix.platform.runner }}
9999
strategy:
100100
fail-fast: false
101101
matrix:
102102
platform:
103-
- runner: macos-13
104-
python-version: "cp312-macosx_x86_64"
105-
archs: "x86_64"
106-
macosx_deployment_target: "13.0"
103+
# - runner: macos-13
104+
# python-version: "cp312-macosx_x86_64"
105+
# archs: "x86_64"
106+
# macosx_deployment_target: "13.0"
107107
- runner: macos-14
108108
python-version: "cp312-macosx_arm64"
109109
archs: "arm64"
@@ -139,7 +139,7 @@ jobs:
139139
path: wheelhouse
140140

141141
windows:
142-
name: Build wheels
142+
name: Build wheels for Windows
143143
needs: generate-stub
144144
runs-on: ${{ matrix.platform.runner }}
145145
strategy:
@@ -170,9 +170,10 @@ jobs:
170170
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
171171
CIBW_ENVIRONMENT_MACOS: >-
172172
PATH=$HOME/.cargo/bin:$PATH MACOSX_DEPLOYMENT_TARGET=${{ matrix.platform.macosx_deployment_target }}
173-
CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
174-
CIBW_TEST_SOURCES: "pysplashsurf/tests"
175-
CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
173+
# Tests are broken on Windows because trimesh library tries to write temporary files which fails
174+
#CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
175+
#CIBW_TEST_SOURCES: "pysplashsurf/tests"
176+
#CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
176177
- name: Upload wheels
177178
uses: actions/upload-artifact@v4
178179
with:
@@ -211,46 +212,22 @@ jobs:
211212
with:
212213
pattern: wheels-*
213214
merge-multiple: true
215+
- uses: actions/setup-python@v5
216+
with:
217+
python-version: 3.x
218+
- name: Install dependencies
219+
run: |
220+
python -m pip install --upgrade pip
221+
pip install twine
214222
- name: Test
223+
env:
224+
TWINE_USERNAME: __token__
225+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
215226
run: |
216227
ls
217-
# - name: Publish to PyPI
218-
# #if: ${{ startsWith(github.ref, 'refs/tags/') }}
219-
# uses: PyO3/maturin-action@v1
220-
# env:
221-
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
222-
# with:
223-
# command: upload
224-
# args: --non-interactive --skip-existing wheels-*/*
225-
226-
# publish:
227-
# name: Publish to PyPI
228-
# runs-on: ubuntu-latest
229-
# if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
230-
# needs: [linux, windows, macos, sdist, tests]
231-
# permissions:
232-
# # Use to sign the release artifacts
233-
# id-token: write
234-
# # Used to upload release artifacts
235-
# contents: write
236-
# # Used to generate artifact attestation
237-
# attestations: write
238-
# steps:
239-
# - uses: actions/download-artifact@v4
240-
# #- name: Generate artifact attestation
241-
# # uses: actions/attest-build-provenance@v1
242-
# # with:
243-
# # subject-path: 'wheels-*/*'
244-
# - name: Publish to PyPI
245-
# #if: ${{ startsWith(github.ref, 'refs/tags/') }}
246-
# uses: PyO3/maturin-action@v1
247-
# env:
248-
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
249-
# with:
250-
# command: upload
251-
# args: --non-interactive --skip-existing wheels-*/*
228+
twine upload wheelhouse/*.whl --skip-existing
252229
253-
# build_wheel:
230+
# build_wheel_dev:
254231
# name: Build wheel for documentation and tests
255232
# runs-on: ubuntu-latest
256233
# outputs:
@@ -279,7 +256,7 @@ jobs:
279256

280257
# docs:
281258
# name: Build documentation
282-
# needs: build_wheel
259+
# needs: build_wheel_dev
283260
# runs-on: ubuntu-latest
284261
# steps:
285262
# - uses: actions/checkout@v4
@@ -293,7 +270,7 @@ jobs:
293270
# path: dist/
294271
# - name: Append output to file
295272
# run: |
296-
# echo "./dist/${{ needs.build_wheel.outputs.filename }}" >> pysplashsurf/pysplashsurf/docs/requirements.txt
273+
# echo "./dist/${{ needs.build_wheel_dev.outputs.filename }}" >> pysplashsurf/pysplashsurf/docs/requirements.txt
297274
# - uses: ammaraskar/[email protected]
298275
# with:
299276
# docs-folder: "pysplashsurf/pysplashsurf/docs/"
@@ -313,7 +290,7 @@ jobs:
313290

314291
# tests:
315292
# name: Run pytest
316-
# needs: build_wheel
293+
# needs: build_wheel_dev
317294
# defaults:
318295
# run:
319296
# shell: bash -l {0}
@@ -336,7 +313,7 @@ jobs:
336313
# with:
337314
# name: doc_tests_wheel
338315
# path: dist/
339-
# - run: pip install dist/${{ needs.build_wheel.outputs.filename }}
316+
# - run: pip install dist/${{ needs.build_wheel_dev.outputs.filename }}
340317
# - name: Install splashsurf CLI
341318
# run: cargo install splashsurf
342319
# - name: Run pytest

0 commit comments

Comments
 (0)