Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

frequenz-floss/gh-action-build-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Python Action

This action builds Python wheels and source distribution for a Python package.

Here is an example demonstrating how to use it in a workflow:

jobs:
  build:
    name: Build
    runs-on: ubuntu-20.04

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Build wheels
        uses: frequenz-floss/gh-action-build-python@v0.x.x
        with:
          python_version: "3.11"

Inputs

  • python_version: The Python version to use. Required.

    This is passed to the actions/setup-python action.

  • outdir: The directory where the built packages will be placed.

Security

This action runs python -I -m build, which causes Python build tooling to load and execute repository-controlled build configuration from the checked-out repository.

Only use this action with trusted, already-merged code, such as workflows triggered by push on protected branches or release tags. Do not use this action with pull_request_target.

When you use this action, you are also trusting these external GitHub Actions:

About

Builds the source and binary distribution of a Python package

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors