Check specific version #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check specific version | |
on: | |
workflow_dispatch: | |
inputs: | |
python-version: | |
required: true | |
description: Specific version to check | |
type: string | |
allow-prereleases: | |
required: true | |
default: false | |
description: Include prereleases in the check | |
type: boolean | |
jobs: | |
test_python_build: | |
runs-on: ${{ matrix.os }} | |
name: Test build Python ${{ inputs.python-version }} for ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Test action with Python ${{ inputs.python-version }} | |
id: build | |
uses: MatteoH2O1999/setup-python@master | |
with: | |
python-version: ${{ inputs.python-version }} | |
allow-build: info | |
allow-prereleases: ${{ inputs.allow-prereleases }} | |
- name: Check Python version | |
run: python ./.github/scripts/check_python_version.py ${{ inputs.python-version }} |