Skip to content

Commit 01e5c55

Browse files
authored
Merge pull request #189 from ecmwf/pyWheel/trigger
Python wheel: add testpypi param, push-tag trigger
2 parents 76a6f33 + 67d2d64 commit 01e5c55

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/build-wheel-wrapper.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,27 @@ name: Build Python Wrapper Wheel
1111

1212
on:
1313
# Trigger the workflow manually
14-
workflow_dispatch: ~
14+
workflow_dispatch:
15+
inputs:
16+
use_test_pypi:
17+
description: Use test pypi instead of the regular one
18+
required: false
19+
type: boolean
20+
default: false
1521

16-
# Allow to be called from another workflow
17-
workflow_call: ~
18-
19-
# TODO automation trigger
22+
# Allow to be called from another workflow -- eg `cd.yml`
23+
workflow_call:
24+
inputs:
25+
use_test_pypi:
26+
description: Use test pypi instead of the regular one
27+
required: false
28+
type: boolean
29+
default: false
2030

2131
jobs:
2232
python-wrapper-wheel:
2333
name: Python Wrapper Wheel
2434
uses: ecmwf/reusable-workflows/.github/workflows/python-wrapper-wheel.yml@main
35+
with:
36+
use_test_pypi: ${{ inputs.use_test_pypi }}
2537
secrets: inherit

.github/workflows/cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ jobs:
99
deploy:
1010
uses: ecmwf/reusable-workflows/.github/workflows/create-package.yml@v2
1111
secrets: inherit
12+
wheel:
13+
uses: ./.github/workflows/build-wheel-wrapper.yml
14+
secrets: inherit
15+

0 commit comments

Comments
 (0)