Skip to content

Commit 6df7004

Browse files
committed
update
1 parent 38b50eb commit 6df7004

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build-wheel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: number
2828
default: 7
29+
skip-import-test:
30+
description: 'Skip import test (for CUDA/GPU-dependent packages)'
31+
required: false
32+
type: boolean
33+
default: false
2934
outputs:
3035
artifact-name:
3136
description: 'Name of the uploaded wheel artifact'
@@ -61,6 +66,7 @@ jobs:
6166
twine check dist/*
6267
6368
- name: Test import
69+
if: ${{ !inputs.skip-import-test }}
6470
run: |
6571
pip install dist/*.whl
6672
python -c "import ${{ inputs.package-name }}; print('✅ Imported successfully')"

.github/workflows/tilegym-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@ jobs:
158158
build-wheel:
159159
name: build-python-wheel
160160
needs: config
161+
if: needs.config.outputs.build == 'true'
161162
uses: ./.github/workflows/build-wheel.yml
162163
with:
163164
package-name: tilegym
164165
# Artifact naming: PR builds -> tilegym-pr-wheel-{sha}, Main -> tilegym-wheel-{sha}
165166
artifact-suffix: ${{ needs.config.outputs.is_pr == 'true' && '-pr' || '' }}
166167
python-version: '3.10'
167168
retention-days: 7
169+
skip-import-test: true # TileGym requires CUDA, test in Docker instead
168170

169171
build:
170172
name: build-tilegym-image

0 commit comments

Comments
 (0)