File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 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'
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')"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments