Bump actions/setup-python from 4 to 5 (#134) #89
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: 'test_deploy' | |
'on': | |
push: | |
branches: | |
- 'main' | |
jobs: | |
pypi_deploy: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout repo' | |
uses: 'actions/checkout@v4' | |
- name: Install poetry | |
run: pipx install poetry | |
- name: 'Set up Python 3.10' | |
uses: actions/setup-python@v5 | |
with: | |
cache: 'poetry' | |
python-version: '3.10' | |
- name: 'Configure Poetry' | |
run: 'poetry config virtualenvs.in-project true' | |
- name: 'Install dependencies' | |
run: 'poetry install' | |
- name: 'Setup PyPi credential' | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }} | |
run: | | |
poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
poetry config pypi-token.testpypi "$PYPI_TOKEN" | |
- name: 'Package build' | |
run: 'poetry build' | |
- name: 'Publish package to PyPi' | |
run: 'poetry publish --dry-run -r testpypi' |