Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Ensure python 3.11 support (#2606)

João Gustavo A. Amorim1b0bfa579f74
diff --git a/.github/actions/env/action.yml b/.github/actions/env/action.yml
index 8aaca7218..fd1223759 100644
--- a/.github/actions/env/action.yml
+++ b/.github/actions/env/action.yml
@@ -6,7 +6,7 @@ on:
python-version:
description: "The python version desired."
required: true
- default: '3.10'
+ default: '3.11'
type: string
pytorch-version:
diff --git a/.github/actions_info.md b/.github/actions_info.md
index aa200cd86..a37953aa0 100644
--- a/.github/actions_info.md
+++ b/.github/actions_info.md
@@ -11,7 +11,7 @@ Use the actions:
- `setup-python@v4`
Has the inputs:
-- `python-version`: (string, default: `'3.10'`) the python version desired.
+- `python-version`: (string, default: `'3.11'`) the python version desired.
- The version should be supported by `setup-python@v4` action.
- `pytorch-version`: (string, default: `'2.1.0`') the pytorch version desired.
- This value will be used to install pytorch using conda from pytorch
@@ -33,7 +33,7 @@ Use the actions:
Has the inputs:
- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).
-- `python-version`: (json list of strings, default: `'["3.10"]'`) a string with
+- `python-version`: (json list of strings, default: `'["3.11"]'`) a string with
format of a json list within strings for each python version desired.
- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string
with format of a json list within strings for each pytorch version desired.
@@ -58,7 +58,7 @@ Use the actions:
Has the inputs:
- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).
-- `python-version`: (json list of strings, default: `'["3.10"]'`) a string with
+- `python-version`: (json list of strings, default: `'["3.11"]'`) a string with
format of a json list within strings for each python version desired.
- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string
with format of a json list within strings for each pytorch version desired.
@@ -78,7 +78,7 @@ Use the actions:
Has the inputs:
- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).
-- `python-version`: (json list of strings, default: `'["3.10"]'`) a string with
+- `python-version`: (json list of strings, default: `'["3.11"]'`) a string with
format of a json list within strings for each python version desired.
- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string
with format of a json list within strings for each pytorch version desired.
diff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.yml
index 988e0551a..bd4ca32b7 100644
--- a/.github/workflows/pr_test_cpu.yml
+++ b/.github/workflows/pr_test_cpu.yml
@@ -29,7 +29,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
os: ${{ matrix.os }}
- python-version: '["3.8", "3.10"]'
+ python-version: '["3.8", "3.11"]'
pytorch-version: '["1.9.1", "2.1.0"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
@@ -38,7 +38,7 @@ jobs:
# This job run all test suite
uses: ./.github/workflows/tests.yml
with:
- python-version: '["3.10"]'
+ python-version: '["3.11"]'
pytorch-version: '["2.1.0"]'
pytorch-dtype: 'float32,float64'
coverage: true
diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.yml
index 8780ea24f..fbfadbe4f 100644
--- a/.github/workflows/scheduled_test_cpu.yml
+++ b/.github/workflows/scheduled_test_cpu.yml
@@ -21,7 +21,8 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
os: 'Ubuntu-latest'
- python-version: '["3.8", "3.9", "3.10"]'
+
+ python-version: '["3.8", "3.9", "3.10", "3.11"]'
pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.0"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
pytest-extra: '--runslow'
@@ -37,7 +38,7 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
os: 'Windows-latest'
- python-version: '["3.10"]'
+ python-version: '["3.11"]'
pytorch-version: '["1.9.1", "2.1.0"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
@@ -61,7 +62,7 @@ jobs:
tests-coverage:
uses: ./.github/workflows/tests.yml
with:
- python-version: '["3.10"]'
+ python-version: '["3.11"]'
pytorch-version: '["2.1.0"]'
pytorch-dtype: 'float32,float64'
coverage: true
diff --git a/.github/workflows/scheduled_test_cpu_half.yml b/.github/workflows/scheduled_test_cpu_half.yml
index 99ad92a55..b01aa70e4 100644
--- a/.github/workflows/scheduled_test_cpu_half.yml
+++ b/.github/workflows/scheduled_test_cpu_half.yml
@@ -20,6 +20,6 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
os: ${{ matrix.os }}
- python-version: '["3.8", , "3.10"]' # "3.9"
+ python-version: '["3.8", , "3.11"]' # "3.9"
pytorch-version: '["2.1.0"]' # '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1"]'
pytorch-dtype: 'float16'
diff --git a/.github/workflows/scheduled_test_nightly.yml b/.github/workflows/scheduled_test_nightly.yml
index f1b95ddaf..adb3c7e5d 100644
--- a/.github/workflows/scheduled_test_nightly.yml
+++ b/.github/workflows/scheduled_test_nightly.yml
@@ -21,6 +21,6 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
os: ${{ matrix.os }}
- python-version: '["3.10"]' # "3.8", "3.9",
+ python-version: '["3.11"]' # "3.8", "3.9",
pytorch-version: '["nightly"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
diff --git a/.github/workflows/scheduled_test_pypi_package.yml b/.github/workflows/scheduled_test_pypi_package.yml
index 9344893bf..6392e0edb 100644
--- a/.github/workflows/scheduled_test_pypi_package.yml
+++ b/.github/workflows/scheduled_test_pypi_package.yml
@@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
- python-version: ['3.8', '3.9', '3.10']
+ python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout kornia
diff --git a/.github/workflows/test_tutorials.yml b/.github/workflows/test_tutorials.yml
index ec27731a7..f471510e3 100644
--- a/.github/workflows/test_tutorials.yml
+++ b/.github/workflows/test_tutorials.yml
@@ -4,7 +4,7 @@ on:
python-version:
required: false
type: string
- default: '["3.10"]'
+ default: '["3.11"]'
pytorch-version:
required: false
type: string
@@ -32,6 +32,16 @@ jobs:
python-version: '3.10'
- pytorch-version: '1.10.2'
python-version: '3.10'
+ - pytorch-version: '1.9.1'
+ python-version: '3.11'
+ - pytorch-version: '1.10.2'
+ python-version: '3.11'
+ - pytorch-version: '1.11.0'
+ python-version: '3.11'
+ - pytorch-version: '1.12.1'
+ python-version: '3.11'
+ - pytorch-version: '1.13.1'
+ python-version: '3.11'
steps:
- name: Checkout kornia
diff --git a/.github/workflows/test_typing.yml b/.github/workflows/test_typing.yml
index 3b36452a4..7811bd4bc 100644
--- a/.github/workflows/test_typing.yml
+++ b/.github/workflows/test_typing.yml
@@ -4,7 +4,7 @@ on:
python-version:
required: false
type: string
- default: '["3.10"]'
+ default: '["3.11"]'
pytorch-version:
required: false
type: string
@@ -32,6 +32,16 @@ jobs:
python-version: '3.10'
- pytorch-version: '1.10.2'
python-version: '3.10'
+ - pytorch-version: '1.9.1'
+ python-version: '3.11'
+ - pytorch-version: '1.10.2'
+ python-version: '3.11'
+ - pytorch-version: '1.11.0'
+ python-version: '3.11'
+ - pytorch-version: '1.12.1'
+ python-version: '3.11'
+ - pytorch-version: '1.13.1'
+ python-version: '3.11'
steps:
- name: Checkout kornia
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1d6097b85..be140854b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -4,7 +4,7 @@ on:
python-version:
required: false
type: string
- default: '["3.10"]'
+ default: '["3.11"]'
pytorch-version:
required: false
type: string
@@ -48,6 +48,16 @@ jobs:
python-version: '3.10'
- pytorch-version: '1.10.2'
python-version: '3.10'
+ - pytorch-version: '1.9.1'
+ python-version: '3.11'
+ - pytorch-version: '1.10.2'
+ python-version: '3.11'
+ - pytorch-version: '1.11.0'
+ python-version: '3.11'
+ - pytorch-version: '1.12.1'
+ python-version: '3.11'
+ - pytorch-version: '1.13.1'
+ python-version: '3.11'
steps:
- name: Checkout kornia