Skip to content

Commit

Permalink
check_prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed May 28, 2024
1 parent c46b9e8 commit e182fbe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ on:
description: The names of the Python packages to run flake8 on.
required: true
type: string
check_prereleases:
description: Flag to say if prereleases python versions should be checked
required: false
type: string
default: 'true'
env:
PRERELEASE: "3.13"

jobs:
validate:
Expand Down Expand Up @@ -146,13 +153,13 @@ jobs:

runs-on: ${{ matrix.runner }}
timeout-minutes: 20

if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true'}}
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: ${{ matrix.python-version == 3.13 }}
allow-prereleases: ${{ matrix.python-version == $PRERELEASE}}

- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit e182fbe

Please sign in to comment.