Skip to content

Commit ef628ac

Browse files
committed
Revert config-types.yaml and action.yml to use tox
1 parent d1f0535 commit ef628ac

2 files changed

Lines changed: 16 additions & 33 deletions

File tree

.github/workflows/config-types.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- uses: ./
23+
- uses: astral-sh/setup-uv@v5
2424
with:
25-
profile: generate-config-dict
25+
enable-cache: true
2626

27-
- uses: ./
28-
with:
29-
profile: parser-config-dicts
27+
- run: uv python install 3.14
3028

31-
- uses: ./
32-
with:
33-
profile: parse-config-dict
29+
- run: uv tool install --python 3.14 tox --with tox-uv
30+
31+
- run: tox -e config-types -- --check

action.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ branding:
77
inputs:
88
input:
99
description: 'Input schema file or directory'
10-
required: false
11-
default: ''
10+
required: true
1211
output:
1312
description: 'Output file or directory'
14-
required: false
15-
default: ''
13+
required: true
1614
input-file-type:
1715
description: 'Input file type (openapi, jsonschema, json, yaml, csv, graphql)'
18-
required: false
19-
default: ''
16+
required: true
2017
output-model-type:
2118
description: 'Output model type (pydantic_v2.BaseModel, pydantic.BaseModel, dataclasses.dataclass, typing.TypedDict, msgspec.Struct)'
22-
required: false
23-
default: ''
19+
required: true
2420
check:
2521
description: 'Validate that existing output is up to date (no generation)'
2622
required: false
@@ -74,23 +70,12 @@ runs:
7470
shell: bash
7571
7672
- run: |
77-
ARGS=()
78-
79-
if [ -n "${{ inputs.input }}" ]; then
80-
ARGS+=(--input "${{ inputs.input }}")
81-
fi
82-
83-
if [ -n "${{ inputs.output }}" ]; then
84-
ARGS+=(--output "${{ inputs.output }}")
85-
fi
86-
87-
if [ -n "${{ inputs.input-file-type }}" ]; then
88-
ARGS+=(--input-file-type "${{ inputs.input-file-type }}")
89-
fi
90-
91-
if [ -n "${{ inputs.output-model-type }}" ]; then
92-
ARGS+=(--output-model-type "${{ inputs.output-model-type }}")
93-
fi
73+
ARGS=(
74+
--input "${{ inputs.input }}"
75+
--output "${{ inputs.output }}"
76+
--input-file-type "${{ inputs.input-file-type }}"
77+
--output-model-type "${{ inputs.output-model-type }}"
78+
)
9479
9580
if [ "${{ inputs.check }}" = "true" ]; then
9681
ARGS+=(--check)

0 commit comments

Comments
 (0)