Skip to content

Commit 8d7c9b0

Browse files
ci: add python-version input to hynek action and UV_PYTHON env
- Pass python-version: '3.12' directly to hynek/build-and-inspect-python-package action to prevent it from defaulting to Python 3.x (which resolves to 3.14) - Add UV_PYTHON: "3.12" env variable as additional safeguard for uv - Keep actions/setup-python step for consistency The hynek action has its own python-version input that defaults to 3.x, which was overriding the runner's Python version set by actions/setup-python. This comprehensive fix ensures Python 3.12 is used throughout the build process. Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 4b497a1 commit 8d7c9b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ env:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
env:
15+
UV_PYTHON: "3.12"
1416
steps:
1517
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1618
with:
@@ -19,6 +21,8 @@ jobs:
1921
with:
2022
python-version: '3.12'
2123
- uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
24+
with:
25+
python-version: '3.12'
2226

2327
publish:
2428
name: Publish to PyPI

0 commit comments

Comments
 (0)