Skip to content

removing some async part #60

removing some async part

removing some async part #60

##
## 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