Skip to content

Commit

Permalink
Install twine with --force for package verification (#30683)
Browse files Browse the repository at this point in the history
In some cases when the machine has been reused across builds, pipx
installed twine might seem both installed and removed (this happens
when builds are cancelled while installing twine.

Installing twine with --force should fix the problem.
  • Loading branch information
potiuk authored Apr 17, 2023
1 parent 522083c commit b7a3a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,10 @@ jobs:
- name: "Prepare airflow package: ${{matrix.package-format}}"
run: breeze release-management prepare-airflow-package --version-suffix-for-pypi dev0
- name: "Verify wheel packages with twine"
run: pipx install twine && twine check dist/*.whl
run: pipx install twine --force && twine check dist/*.whl
if: matrix.package-format == 'wheel'
- name: "Verify sdist packages with twine"
run: pipx install twine && twine check dist/*.tar.gz
run: pipx install twine --force && twine check dist/*.tar.gz
if: matrix.package-format == 'sdist'
- name: "Test providers issue generation automatically"
run: >
Expand Down

0 comments on commit b7a3a16

Please sign in to comment.