Skip to content

Commit

Permalink
chore: start support to py312 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnv1 committed Jun 15, 2024
1 parent ca91494 commit 5b67b7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr_test_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@ jobs:
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: ${{ matrix.os }}
python-version: '["3.8", "3.11"]'
python-version: '["3.8", "3.12"]'
pytorch-version: '["1.9.1", "2.3.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}

tests-cpu-macos:
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: 'MacOS-latest'
python-version: '["3.8", "3.11"]'
python-version: '["3.8", "3.12"]'
pytorch-dtype: 'float32'


coverage:
uses: kornia/workflows/.github/workflows/[email protected]
with:
python-version: '"3.12"'

typing:
uses: kornia/workflows/.github/workflows/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled_test_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: 'Ubuntu-latest'
python-version: '["3.8", "3.9", "3.10", "3.11"]'
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.2", "2.2.2", "2.3.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
pytest-extra: '--runslow'
Expand All @@ -37,7 +37,7 @@ jobs:
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: 'Windows-latest'
python-version: '["3.11"]'
python-version: '["3.12"]'
pytorch-version: '["1.9.1", "2.3.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled_test_pypi_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Checkout kornia
Expand Down
4 changes: 3 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def pytest_sessionstart(session):
try:
_setup_torch_compile()
except RuntimeError as ex:
if "not yet supported for torch.compile" not in str(ex):
if "not yet supported for torch.compile" not in str(
ex
) and "Dynamo is not supported on Python 3.12+" not in str(ex):
raise ex
# TODO: cache all torch.load weights/states here to not impact on test suite

Expand Down

0 comments on commit 5b67b7c

Please sign in to comment.