Skip to content

Commit 6682b7b

Browse files
committed
ci: pin python version in ci jobs
1 parent a56b332 commit 6682b7b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
name: Test package build
1414
runs-on: ubuntu-latest
1515
if: "!startsWith(github.event.head_commit.message, 'bump:')"
16+
env:
17+
PYTHON_VERSION: 3.13
1618
steps:
1719
- name: Check out the repo
1820
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -21,14 +23,14 @@ jobs:
2123
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2224

2325
- name: Build the package
24-
run: uv build
26+
run: uv build --python $PYTHON_VERSION
2527

2628
- name: List built artifacts
2729
run: ls -la dist/
2830

2931
- name: Install the built wheel
3032
run: |
31-
uv venv
33+
uv venv --python $PYTHON_VERSION
3234
# Find the wheel file and install it
3335
WHEEL_FILE=$(ls dist/*.whl | head -1)
3436
echo "Installing wheel: $WHEEL_FILE"
@@ -64,7 +66,6 @@ jobs:
6466
docker: ${{ steps.docker-changes.outputs.docker }}
6567
workflow: ${{ steps.docker-changes.outputs.workflow }}
6668

67-
6869
test-docker-build:
6970
needs: [should-test-docker-build]
7071
name: Test Docker build
@@ -92,4 +93,3 @@ jobs:
9293
push: false
9394
platforms: linux/amd64,linux/arm64
9495
cache-from: type=registry,ref=ghcr.io/elementsinteractive/lightman-ai:buildcache
95-

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2020

2121
- name: Install the project
22-
run: uv sync --locked --group lint --group test --all-extras
22+
run: uv sync --locked --group lint --group test --all-extras --python 3.13
2323

2424
- name: Cache mypy cache
2525
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.2.1

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2020

2121
- name: Install the project
22-
run: uv sync --locked --group test --all-extras
22+
run: uv sync --locked --group test --all-extras --python 3.13
2323

2424
- name: Run tests
2525
run: uv run pytest tests

0 commit comments

Comments
 (0)