diff --git a/.github/actions/coverage/action.yml b/.github/actions/coverage/action.yml index 49238a3..43c5e58 100644 --- a/.github/actions/coverage/action.yml +++ b/.github/actions/coverage/action.yml @@ -4,7 +4,7 @@ inputs: python-version: required: false type: string - default: "3.11" + default: "3.12" pytorch-version: required: false type: string @@ -36,7 +36,7 @@ runs: using: "composite" steps: - name: Setting environment on ${{ inputs.os }} with python ${{ inputs.python-version }} and pytorch ${{ inputs.pytorch-version }} - uses: kornia/workflows/.github/actions/env@v1.8.1 + uses: kornia/workflows/.github/actions/env@v1.9.1 with: python-version: ${{ inputs.python-version }} pytorch-version: ${{ inputs.pytorch-version }} diff --git a/.github/actions/env/action.yml b/.github/actions/env/action.yml index 2aef7e6..8367481 100644 --- a/.github/actions/env/action.yml +++ b/.github/actions/env/action.yml @@ -4,7 +4,7 @@ inputs: python-version: description: "The python version desired." required: true - default: "3.11" + default: "3.12" type: string pytorch-version: @@ -35,7 +35,7 @@ runs: fetch-depth: ${{ inputs.fetch-depth }} - name: Setup environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} diff --git a/.github/actions/tests/action.yml b/.github/actions/tests/action.yml index 178ffcb..f325791 100644 --- a/.github/actions/tests/action.yml +++ b/.github/actions/tests/action.yml @@ -4,7 +4,7 @@ inputs: python-version: required: false type: string - default: "3.11" + default: "3.12" pytorch-version: required: false type: string diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 25bc2ab..1c1bc89 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,7 +4,7 @@ on: python-version: required: false type: string - default: '["3.11"]' + default: '["3.12"]' pytorch-version: required: false type: string @@ -32,10 +32,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' @@ -46,6 +48,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: - name: Setting environment on ${{ inputs.os }} with python ${{ matrix.python-version }} and pytorch ${{ matrix.pytorch-version }} diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 62fa386..2913cc5 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -4,7 +4,7 @@ on: python-version: required: false type: string - default: '["3.11"]' + default: '["3.12"]' pytorch-version: required: false type: string @@ -32,10 +32,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' @@ -46,6 +48,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: - name: Setting environment on ${{ inputs.os }} with python ${{ matrix.python-version }} and pytorch ${{ matrix.pytorch-version }} diff --git a/.github/workflows/self-tests.yml b/.github/workflows/self-tests.yml index 3575e1d..3a35961 100644 --- a/.github/workflows/self-tests.yml +++ b/.github/workflows/self-tests.yml @@ -51,7 +51,7 @@ jobs: uses: ./.github/workflows/tests.yml with: os: ubuntu-latest - python-version: '["3.10", "3.11"]' + python-version: '["3.10", "3.12"]' pytorch-version: '["2.1.2", "2.3.1"]' pytorch-dtype: 'float32' ref: main diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 09b1bbd..c181544 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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/tests@v1.9.1 diff --git a/.github/workflows/tutorials.yml b/.github/workflows/tutorials.yml index b6d5add..670c0b3 100644 --- a/.github/workflows/tutorials.yml +++ b/.github/workflows/tutorials.yml @@ -4,7 +4,7 @@ on: python-version: required: false type: string - default: '["3.11"]' + default: '["3.12"]' pytorch-version: required: false type: string @@ -32,10 +32,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' @@ -46,6 +48,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: - name: Setting environment on ${{ inputs.os }} with python ${{ matrix.python-version }} and pytorch ${{ matrix.pytorch-version }} diff --git a/README.md b/README.md index 4952378..758785e 100644 --- a/README.md +++ b/README.md @@ -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/tests@v1.9.1 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/coverage@v1.9.1 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.