Skip to content

Bump version up tp 0.2.1rc0 #38

Bump version up tp 0.2.1rc0

Bump version up tp 0.2.1rc0 #38

Workflow file for this run

# This workflow will install Poetry, resolve Python dependencies, run tests,
# build and publish release candidate package versions to TestPyPI upon pushing
# tags of the form "*.*.*".
name: Publish to TestPyPI
on:
push:
tags:
- "*.*.*"
jobs:
TestPyPI-Release:
name: Build Using Poetry and Publish to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Poetry
run: |
# Run the installer
curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to path
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Publish package to TestPyPI
run: |
# Configure the TestPyPI repository
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
# Build the and publish the package
poetry publish --build -r testpypi