Skip to content

Commit 159e95d

Browse files
committed
Restrict pypi upload to python 3.10.
1 parent a38167b commit 159e95d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ jobs:
106106
python setup.py bdist_wheel
107107
twine check dist/*
108108
- name: Publish the package to pypi
109-
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'testcontainers'
109+
if: >
110+
github.event_name == 'push'
111+
&& github.ref == 'refs/heads/master'
112+
&& github.repository_owner == 'testcontainers'
113+
&& matrix.python-version == '3.10'
110114
env:
111115
TWINE_USERNAME: __token__
112116
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)