-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
35 lines (35 loc) · 1.13 KB
/
Copy pathaction.yml
File metadata and controls
35 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "ft-readiness"
description: "Pre-publish free-threading readiness gate: catch a re-enabled GIL, a missing cp314t wheel, and a stale Free Threading classifier."
branding:
icon: "check-circle"
color: "blue"
inputs:
project:
description: "Project directory to inspect (its dist/ is scanned)."
required: false
default: "."
dist:
description: "Directory of built wheels/sdists (default: <project>/dist)."
required: false
default: ""
strict:
description: "Treat warnings as failures."
required: false
default: "false"
version:
description: "ft-readiness version spec to install (e.g. '==0.1.0')."
required: false
default: ""
runs:
using: "composite"
steps:
- name: Install ft-readiness
shell: bash
run: python -m pip install --disable-pip-version-check "ft-readiness${{ inputs.version }}"
- name: Run ft-readiness
shell: bash
run: |
args="${{ inputs.project }}"
if [ -n "${{ inputs.dist }}" ]; then args="$args --dist ${{ inputs.dist }}"; fi
if [ "${{ inputs.strict }}" = "true" ]; then args="$args --strict"; fi
ft-readiness $args