Skip to content

Introduce reusable Python build workflow #28

Introduce reusable Python build workflow

Introduce reusable Python build workflow #28

Workflow file for this run

name: Build Python Packages

Check failure on line 1 in .github/workflows/build-python.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-python.yml

Invalid workflow file

(Line: 30, Col: 9): Unrecognized named-value: 'matrix'. Located at position 130 within expression: github.event_name != 'workflow_dispatch' || github.event.inputs.python_version == 'all' || github.event.inputs.python_version == matrix.python_version
on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
python_version:
description: 'Version to build (all, 3.12.12, 3.13.12, 3.14.3)'
required: true
default: all
type: choice
options:
- all
- 3.12.12
- 3.13.12
- 3.14.3
jobs:
build-matrix:
name: Build Python ${{ matrix.python_version }}
strategy:
fail-fast: false
matrix:
python_version:
- 3.12.12
- 3.13.12
- 3.14.3
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.python_version == 'all' || github.event.inputs.python_version == matrix.python_version }}
uses: ./.github/workflows/build-python-version.yml
with:
python_version: ${{ matrix.python_version }}
secrets: inherit