removing some async part #60
Workflow file for this run
This file contains hidden or 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
## | |
## Copyright (c) 2022-2023 Geosiris. | |
## SPDX-License-Identifier: Apache-2.0 | |
## | |
--- | |
name: Publish test-pypi | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build-and-publish: | |
name: Build and Publish to TestPyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🐍 Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: 💾 Cache Poetry dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pypoetry | |
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
poetry-${{ runner.os }}- | |
- name: 📦 Install poetry | |
uses: abatilo/actions-poetry@v4 | |
with: | |
poetry-version: '2.1.1' | |
- name: 📦 Install poetry-dynamic-versioning | |
run: poetry add -D poetry-dynamic-versioning[plugin] | |
- name: 📥 Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Configure Poetry with PyPI repository and token | |
run: | | |
poetry config repositories.test-pypi https://test.pypi.org/legacy/ | |
poetry config pypi-token.test-pypi ${{ secrets.POETRY_PYPI_TEST_TOKEN_VALUE }} | |
- name: 🛠️ Build the package | |
run: poetry build | |
- name: 🚀 Publish to PyPI | |
run: | |
poetry publish --repository test-pypi |