Skip to content

Bump version to 0.24.0 #122

Bump version to 0.24.0

Bump version to 0.24.0 #122

Workflow file for this run

name: Release
on:
push:
tags:
- '*.*.*'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-14]
python-version: ['3.13']
group: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v4
- name: Free disk space
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
docker-images: true
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v5
- name: Run tests with Python ${{ matrix.python-version }} on ${{ matrix.os }}
env:
PYTEST_GROUP: ${{ matrix.group }}
run: |
pip install tox==4.23.2
uv run tox -e py_partial
getrelease:
name: Get release
needs: test
runs-on: ubuntu-24.04
outputs:
versionoutput: ${{ steps.getversiontag.outputs.VERSION }}
steps:
- name: Get the tag version
id: getversiontag
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
build:
name: Build packages
needs: getrelease
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
TARGET: ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Release
id: release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
upload:
name: Upload to PyPI
needs: [build]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
architecture: x64
- uses: astral-sh/setup-uv@v5
- name: Build package
run: uv build --no-sources
- name: Upload to PyPI
run: uv publish --token=${{ secrets.PYPI_TOKEN }}