Skip to content

Commit

Permalink
Uninstall twine before installing it in CI (#37415)
Browse files Browse the repository at this point in the history
Since we are using different Python versions for pipx now, it can
be that twine is not usable as it was installed with different
python version. Uninstalling twine before installing should help.
  • Loading branch information
potiuk authored Feb 14, 2024
1 parent 705eb7f commit a15a327
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,9 @@ jobs:
- name: "Prepare airflow package: wheel"
run: breeze release-management prepare-airflow-package --version-suffix-for-pypi dev0
- name: "Verify wheel packages with twine"
run: pipx install twine --force && twine check dist/*.whl
run: |
pipx uninstall twine || true
pipx install twine && twine check dist/*.whl
- name: "Test providers issue generation automatically"
run: >
breeze release-management generate-issue-content-providers
Expand Down Expand Up @@ -931,7 +933,9 @@ jobs:
breeze release-management prepare-airflow-package
--version-suffix-for-pypi dev0 --package-format sdist
- name: "Verify sdist packages with twine"
run: pipx install twine --force && twine check dist/*.tar.gz
run: |
pipx uninstall twine || true
pipx install twine && twine check dist/*.whl
- name: "Generate source constraints from CI image"
shell: bash
run: >
Expand Down

0 comments on commit a15a327

Please sign in to comment.