Publish cloud-passport-cli python module to PyPI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish cloud-passport-cli python module to PyPI | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
package_name: 'qubership-cloud-passport-cli' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --user pipx | |
pipx install poetry | |
- name: Build & Test | |
run: | | |
poetry install | |
poetry run pytest | |
- name: Publish package | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
poetry publish --build --no-interaction |