Skip to content

Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.13.0 in /.github/workflows #5

Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.13.0 in /.github/workflows

Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.13.0 in /.github/workflows #5

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
tags: [ "*" ]
pull_request:
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: uv sync --group dev
- name: Run tests
run: uv run pytest
publish:
name: Publish to PyPI
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Build distributions
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
password: ${{ secrets.PYPI_TOKEN }}