Skip to content

Build Python

github-actions[bot] edited this page Jul 8, 2026 · 2 revisions

Python - Build / Publish

Overview

Automates the following:

  • Builds Project
  • Runs tests
  • Lints code / Type Checker

Version Format

When using the release workflow (python-release.yml), the version in .release.yml or pyproject.toml must be in unprefixed format (e.g. 1.2.3), not v1.2.3. GitHub Release tags use a v prefix (e.g. v1.2.3), but the v is automatically stripped when comparing against the version file.

Usage

The Action will try to determine how to install, build, test, and lint your project.

Simple:

uses: advanced-security/reusable-workflows/.github/workflows/python.yml@v0.2.0

With Settings:

uses: advanced-security/reusable-workflows/.github/workflows/python-build.yml@v0.2.0
with:
  install: true  # Install dependencies (default is true)
  build: false   # Build the project
  test: false    # Run tests
  lint: false    # Run linter

Home


Building / Testing / Publishing:

  • Python - Build / Test / Lint
  • Container - Build / Publish / Scan / Sign

Linting:

  • Markdown Linting

Security:

  • Dependency Review

Repository Management:

  • 🚧 Labeler

Clone this wiki locally