Skip to content

Commit 8067dad

Browse files
Add workflow to test PyPI yank capability via org secret
1 parent d7f2708 commit 8067dad

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test PyPI yank capability
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test-yank:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install twine
11+
run: pip install twine
12+
13+
- name: Attempt to yank policyengine-uk 0.35.0
14+
env:
15+
TWINE_USERNAME: __token__
16+
TWINE_PASSWORD: ${{ secrets.PYPI }}
17+
run: |
18+
pip install twine
19+
twine yank policyengine-uk 0.35.0 --reason "Test: verifying org secret has yank permissions" || echo "YANK FAILED (exit $?)"

0 commit comments

Comments
 (0)