Skip to content

Commit 204426f

Browse files
committed
chore(ci): upgrade python requirement to 3.13
- Update pyproject.toml to require python >= 3.13 - Update tox.ini to test py313 - Remove legacy CUDA dependencies (11.8, 12.1) incompatible with PyTorch 2.5+ - Fix numpy array formatting issue in inferencer tests for Py3.13 compatibility Signed-off-by: Rickypanta0 <rickypanta.dev@gmail.com>
1 parent 101e2bc commit 204426f

File tree

83 files changed

+332
-10667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+332
-10667
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ body:
7070
value: |
7171
OS information:
7272
- OS: [e.g. Ubuntu 20.04]
73-
- Python version: [e.g. 3.10.0]
74-
- Anomalib version: [e.g. 0.3.6]
75-
- PyTorch version: [e.g. 1.9.0]
76-
- CUDA/cuDNN version: [e.g. 11.1]
73+
- Python version: [e.g. 3.13.0]
74+
- Anomalib version: [e.g. 2.3.0]
75+
- PyTorch version: [e.g. 2.5.1]
76+
- CUDA/cuDNN version: [e.g. 12.4]
7777
- GPU models and configuration: [e.g. 2x GeForce RTX 3090]
7878
- Any other relevant information: [e.g. I'm using a custom dataset]
7979
validations:

.github/actions/code-quality/pre-commit/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# steps:
3535
# - uses: ./.github/actions/code-quality/pre-commit
3636
# with:
37-
# python-version: "3.11"
37+
# python-version: "3.13"
3838
#
3939
# Note: Requires configured pre-commit hooks in repository
4040

@@ -45,7 +45,7 @@ inputs:
4545
python-version:
4646
description: "Python version to use"
4747
required: false
48-
default: "3.10"
48+
default: "3.13"
4949
node-version:
5050
description: "Node.js version to use"
5151
required: false

.github/actions/pytest/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# steps:
4545
# - uses: ./.github/actions/pytest
4646
# with:
47-
# python-version: "3.11"
47+
# python-version: "3.13"
4848
# test-type: "unit"
4949
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
5050
#
@@ -57,7 +57,7 @@ inputs:
5757
python-version:
5858
description: "Python version to use"
5959
required: false
60-
default: "3.10"
60+
default: "3.13"
6161
test-type:
6262
description: "Type of tests to run (unit/integration/all)"
6363
required: false

.github/actions/security/bandit/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ runs:
9090
- name: Set up Python
9191
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
9292
with:
93-
python-version: "3.10"
93+
python-version: "3.13"
9494

9595
- name: Install Bandit
9696
shell: bash

.github/actions/security/trivy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions:
3030
- name: Set up Python
3131
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3232
with:
33-
python-version: "3.10"
33+
python-version: "3.13"
3434
- name: Install dependencies
3535
run: python -m pip install pip-tools
3636
- name: Freeze dependencies

.github/workflows/_reusable-artifact-builder.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - Retention configuration
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for building (default: "3.10")
30+
# - python-version: Python version for building (default: "3.11")
3131
# - verify-package: Enable package verification (default: true)
3232
#
3333
# Outputs:
@@ -46,7 +46,7 @@
4646
# build:
4747
# uses: ./.github/workflows/_reusable-artifact-builder.yaml
4848
# with:
49-
# python-version: "3.10"
49+
# python-version: "3.11"
5050
# verify-package: true
5151
#
5252
# Note: Requires proper Python project structure and build configuration
@@ -59,7 +59,7 @@ on:
5959
python-version:
6060
description: "Python version for building"
6161
type: string
62-
default: "3.10"
62+
default: "3.11"
6363
verify-package:
6464
description: "Run package verification"
6565
type: boolean

.github/workflows/_reusable-code-quality.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - Status updates
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for checks (default: "3.10")
30+
# - python-version: Python version for checks (default: "3.13")
3131
#
3232
# Example Usage:
3333
# 1. Default Configuration:
@@ -40,7 +40,7 @@
4040
# quality:
4141
# uses: ./.github/workflows/_reusable-code-quality.yaml
4242
# with:
43-
# python-version: "3.11"
43+
# python-version: "3.13"
4444
#
4545
# Note: Requires configured pre-commit hooks in repository
4646

@@ -52,7 +52,7 @@ on:
5252
python-version:
5353
description: "Python version for checks"
5454
type: string
55-
default: "3.10"
55+
default: "3.13"
5656

5757
permissions:
5858
contents: read

.github/workflows/_reusable-pr-title-check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# - Detailed feedback
2525
#
2626
# Required Inputs:
27-
# - python-version: Python version for validation (default: "3.10")
27+
# - python-version: Python version for validation (default: "3.13")
2828
#
2929
# Example Usage:
3030
# 1. Basic Validation:
@@ -37,7 +37,7 @@
3737
# pr-title-check:
3838
# uses: ./.github/workflows/_reusable-pr-title-check.yaml
3939
# with:
40-
# python-version: "3.11"
40+
# python-version: "3.13"
4141
#
4242
# Note: Requires Commitizen configuration in pyproject.toml
4343

@@ -49,7 +49,7 @@ on:
4949
python-version:
5050
description: "Python version for validation"
5151
type: string
52-
default: "3.10"
52+
default: "3.13"
5353

5454
permissions:
5555
contents: read

.github/workflows/_reusable-release-validation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# uses: ./.github/workflows/_reusable-release-validation.yaml
5959
# with:
6060
# version: "v1.2.3"
61-
# python-version: "3.10"
61+
# python-version: "3.11"
6262
# secrets:
6363
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
6464
#
@@ -68,7 +68,7 @@
6868
# uses: ./.github/workflows/_reusable-release-validation.yaml
6969
# with:
7070
# version: "v1.2.3-rc1"
71-
# python-version: "3.10"
71+
# python-version: "3.11"
7272
# allow-prerelease: true
7373
# secrets:
7474
# codecov-token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/_reusable-test-suite.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - Artifact creation
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for tests (default: "3.10")
30+
# - python-version: Python version for tests (default: "3.13")
3131
# - test-type: Type of test to run (unit/integration/e2e)
3232
# - runner: Runner to use for the tests
3333
# - timeout: Test timeout in minutes
@@ -52,7 +52,7 @@
5252
# test:
5353
# uses: ./.github/workflows/_reusable-test-suite.yaml
5454
# with:
55-
# python-version: "3.11"
55+
# python-version: "3.13"
5656
# test-type: "unit"
5757
# timeout: 30
5858
# secrets:
@@ -68,7 +68,7 @@ on:
6868
python-version:
6969
description: "Python version to use for tests"
7070
type: string
71-
default: "3.10"
71+
default: "3.13"
7272
test-type:
7373
description: "Type of test to run (unit/integration/e2e)"
7474
type: string

0 commit comments

Comments
 (0)