Skip to content

Test Release

Test Release #2

Workflow file for this run

# Universal DDI Python Client release workflow.
name: Test Release
# This GitHub action is triggered on a manual workflow_dispatch event.
on:
workflow_dispatch:
# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write
id-token: write
jobs:
build-package-test:
name: Create and Store Python 🐍 distribution πŸ“¦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a package
run: python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish-to-testpypi:
name: Publish Python 🐍 distribution πŸ“¦ to TestPyPI
needs:
- build-package-test
runs-on: ubuntu-latest
environment:
name: testpypi-python-client
url: https://test.pypi.org/p/universal-ddi-python-client
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
repository-url: https://test.pypi.org/legacy/