Skip to content

Commit 7036e01

Browse files
Fix: Pin python version to 3.13 to fix broken dataclasses in 3.14 (#274)
* Fix: Pin python version to 3.13 to fix broken dataclasses in 3.14 * CI: Pin python version to 3.13 * CI: Force python version into setup call * Use local setup workflow where it makes sense Signed-off-by: Eike Waldt <[email protected]> On-behalf-of: SAP <[email protected]> * Bump poetry lock to include python 3.13 pin Signed-off-by: Eike Waldt <[email protected]> On-behalf-of: SAP <[email protected]> * CI: Remove Python 3.14 from pytest workflow --------- Signed-off-by: Tiara Hock <[email protected]> Co-authored-by: Eike Waldt <[email protected]> On-behalf-of: SAP <[email protected]>
1 parent 4453fe4 commit 7036e01

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
default: "0.10.6"
88
python_version:
99
description: Python version to setup
10-
default: "3.14"
10+
default: "3.13"
1111

1212
outputs:
1313
version:

.github/workflows/bandit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v6
20-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@main
20+
- uses: ./.github/actions/setup
2121
- name: Simple bandit security checks
2222
run: make security
2323
- name: Show Report in Action Output
2424
if: always()
2525
run: cat bandit-report.json
2626
- name: Upload Bandit Scan Artifact
27-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # [email protected]
27+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # [email protected]
2828
if: always()
2929
with:
30-
name: bandit-findings
31-
path: bandit-report.json
30+
name: bandit-findings
31+
path: bandit-report.json

.github/workflows/black.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v6
10-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@main
10+
- uses: ./.github/actions/setup
1111
- run: make lint

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v6
20-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@main
20+
- uses: ./.github/actions/setup
2121
- name: Simple poetry build no package
2222
run: make build

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Update Sphinx documentation
33
on: [push, pull_request, workflow_dispatch]
44

55
permissions:
6-
contents: write
6+
contents: write
77

88
jobs:
99
docs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@main
13+
- uses: ./.github/actions/setup
1414
- run: make docs
1515
- name: Deploy to GitHub Pages
1616
uses: peaceiris/actions-gh-pages@v4

.github/workflows/pytests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ on:
66
- main
77
pull_request:
88

9-
109
jobs:
1110
test:
1211
name: Run tests and collect coverage
1312
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
python_version: [ "3.13", "3.14" ]
15+
python_version: ["3.13"]
1716
steps:
1817
- name: Checkout
1918
uses: actions/checkout@v6

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88
packages = [{ include = "gardenlinux", from = "src" }]
99

1010
[tool.poetry.dependencies]
11-
python = ">=3.13"
11+
python = ">=3.13, <3.14"
1212
apt-repo = "^0.5"
1313
boto3 = "^1.40.57"
1414
click = "^8.2.1"

0 commit comments

Comments
 (0)