File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Release
33on :
44 push :
55 tags : ['v**']
6+ workflow_dispatch :
7+ inputs :
8+ allow_example_test_failures :
9+ description : ' Publish even if the live example tests fail (use only when a SerpApi engine is down)'
10+ type : boolean
11+ default : false
612
713concurrency :
814 group : ${{ github.workflow }}-${{ github.ref }}
1824 steps :
1925 - uses : actions/checkout@v6
2026
27+ - name : Ensure ref is a tag
28+ if : github.ref_type != 'tag'
29+ run : |
30+ echo "Release must run against a tag, got '${{ github.ref }}'" >&2
31+ exit 1
32+
2133 - uses : actions/setup-python@v6
2234 with :
2335 python-version : ${{ matrix.python-version }}
3244
3345 - name : Run example tests
3446 if : matrix.python-version == '3.14'
47+ continue-on-error : ${{ inputs.allow_example_test_failures == true }}
3548 run : pytest -k "example"
3649 env :
3750 API_KEY : ${{ secrets.API_KEY }}
You can’t perform that action at this time.
0 commit comments