-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from kornia/chore/support312
chore: add support to py312
- Loading branch information
Showing
9 changed files
with
87 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
python-version: | ||
required: false | ||
type: string | ||
default: '["3.11"]' | ||
default: '["3.12"]' | ||
pytorch-version: | ||
required: false | ||
type: string | ||
|
@@ -44,10 +44,12 @@ jobs: | |
python-version: ${{ fromJSON(inputs.python-version) }} | ||
pytorch-version: ${{ fromJSON(inputs.pytorch-version) }} | ||
exclude: | ||
# support to python3.10 only on torch 1.11 or greater | ||
- pytorch-version: '1.9.1' | ||
python-version: '3.10' | ||
- pytorch-version: '1.10.2' | ||
python-version: '3.10' | ||
# support to python3.11 only on torch 2.0 or greater | ||
- pytorch-version: '1.9.1' | ||
python-version: '3.11' | ||
- pytorch-version: '1.10.2' | ||
|
@@ -58,6 +60,21 @@ jobs: | |
python-version: '3.11' | ||
- pytorch-version: '1.13.1' | ||
python-version: '3.11' | ||
# support to python3.12 only on torch 2.2 or greater | ||
- pytorch-version: '1.9.1' | ||
python-version: '3.12' | ||
- pytorch-version: '1.10.2' | ||
python-version: '3.12' | ||
- pytorch-version: '1.11.0' | ||
python-version: '3.12' | ||
- pytorch-version: '1.12.1' | ||
python-version: '3.12' | ||
- pytorch-version: '1.13.1' | ||
python-version: '3.12' | ||
- pytorch-version: '2.0.1' | ||
python-version: '3.12' | ||
- pytorch-version: '2.1.2' | ||
python-version: '3.12' | ||
|
||
steps: | ||
- uses: kornia/workflows/.github/actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ Use the actions: | |
- `asottile/workflows/.github/actions/fast-checkout` | ||
|
||
Has the inputs: | ||
- `python-version`: (string, default: `'3.11'`) the python version desired. | ||
- `python-version`: (string, default: `'3.12'`) the python version desired. | ||
- The version should be supported by `setup-python@v4` action. | ||
- `pytorch-version`: (string, default: `'2.3.1`') the pytorch version desired. | ||
- This value will be used to install pytorch using conda from pytorch | ||
|
@@ -38,7 +38,7 @@ responsible for running kornia tests. | |
Use the actions: | ||
- `kornia/workflows/.github/actions/env` | ||
Has the inputs: | ||
- `python-version`: (string, default: `'3.11'`) the python version desired. | ||
- `python-version`: (string, default: `'3.12'`) the python version desired. | ||
- The version should be supported by `setup-python@v4` action. | ||
- `pytorch-version`: (string, default: `'2.3.1`') the pytorch version desired. | ||
- This value will be used to install pytorch using conda from pytorch | ||
|
@@ -99,7 +99,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.11"]'`) a string with | ||
- `python-version`: (json list of strings, default: `'["3.12"]'`) a string with | ||
format of a json list within strings for each python version desired. | ||
- `pytorch-version`: (json list of strings, default: `'["2.3.1"]'`) a string | ||
with format of a json list within strings for each pytorch version desired. | ||
|
@@ -120,7 +120,7 @@ jobs: | |
tests: | ||
uses: kornia/workflows/.github/workflows/[email protected] | ||
with: | ||
python-version: '["3.8", "3.11"]' | ||
python-version: '["3.8", "3.12"]' | ||
pytorch-version: '["1.13.1", "2.0.0"]' | ||
``` | ||
|
||
|
@@ -158,7 +158,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`: (string, default: `'3.11'`) the python version desired. | ||
- `python-version`: (string, default: `'3.12'`) the python version desired. | ||
- The version should be supported by `setup-python@v4` action. | ||
- `pytorch-version`: (string, default: `'2.3.1`') the pytorch version desired. | ||
- This value will be used to install pytorch using conda from pytorch | ||
|
@@ -176,7 +176,7 @@ jobs: | |
coverage: | ||
uses: kornia/workflows/.github/workflows/[email protected] | ||
with: | ||
python-version: "3.11" | ||
python-version: "3.12" | ||
pytorch-version: "2.0.0" | ||
``` | ||
|
@@ -190,7 +190,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.11"]'`) a string with | ||
- `python-version`: (json list of strings, default: `'["3.12"]'`) a string with | ||
format of a json list within strings for each python version desired. | ||
- `pytorch-version`: (json list of strings, default: `'["2.3.1"]'`) a string | ||
with format of a json list within strings for each pytorch version desired. | ||
|
@@ -216,7 +216,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.11"]'`) a string with | ||
- `python-version`: (json list of strings, default: `'["3.12"]'`) a string with | ||
format of a json list within strings for each python version desired. | ||
- `pytorch-version`: (json list of strings, default: `'["2.3.1"]'`) a string | ||
with format of a json list within strings for each pytorch version desired. | ||
|
@@ -242,7 +242,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.11"]'`) a string with | ||
- `python-version`: (json list of strings, default: `'["3.12"]'`) a string with | ||
format of a json list within strings for each python version desired. | ||
- `pytorch-version`: (json list of strings, default: `'["2.3.1"]'`) a string | ||
with format of a json list within strings for each pytorch version desired. | ||
|