Skip to content

Test push

Test push #1

Workflow file for this run

name: Build and Publish to Test PyPI
on: push
jobs:
release-build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build release distributions
run: |
python -m pip install --upgrade pip build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists-${{ matrix.python-version }}
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs: release-build
permissions:
id-token: write
steps:
- name: Retrieve test release distributions
uses: actions/download-artifact@v4
with:
name: test-release-dists-${{ matrix.python-version }}
path: dist/
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/