26
26
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
27
- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
28
28
with :
29
- python-version : " 3.11 "
29
+ python-version : " 3.12 "
30
30
cache : " pip"
31
31
cache-dependency-path : " pyproject.toml"
32
32
- name : Install linting dependencies
51
51
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52
52
- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
53
53
with :
54
- python-version : " 3.11 "
54
+ python-version : " 3.12 "
55
55
cache : " pip"
56
56
cache-dependency-path : " pyproject.toml"
57
57
- name : Install ruff and lint check
@@ -65,13 +65,27 @@ jobs:
65
65
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
66
66
- uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
67
67
- uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
68
+ pytype :
69
+ name : " Check types with pytype"
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73
+ - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
74
+ with :
75
+ python-version : " 3.13"
76
+ cache : " pip"
77
+ cache-dependency-path : " pyproject.toml"
78
+ - name : Check types with pytype
79
+ run : |
80
+ python3 -m pip install --quiet --upgrade pytype
81
+ pytype "optax" -j auto --keep-going --disable import-error
68
82
doctests :
69
83
needs : [pre-commit, linting, ruff-lint] # do not run doctests if linting fails
70
84
name : " Doctests on ${{ matrix.os }} with Python ${{ matrix.python-version }}"
71
85
runs-on : " ${{ matrix.os }}"
72
86
strategy :
73
87
matrix :
74
- python-version : ["3.11 "] # only build docs with a somewhat latest python
88
+ python-version : ["3.12 "] # only build docs with a somewhat latest python
75
89
os : [ubuntu-latest]
76
90
steps :
77
91
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -93,14 +107,14 @@ jobs:
93
107
runs-on : " ${{ matrix.os }}"
94
108
strategy :
95
109
matrix :
96
- python-version : ["3.10", "3.11", "3.12"]
110
+ python-version : ["3.10", "3.11", "3.12", "3.13" ]
97
111
os : [ubuntu-latest]
98
112
jax-version : [newest]
99
113
include :
100
114
- python-version : " 3.10"
101
115
os : " ubuntu-latest"
102
116
jax-version : " 0.4.27" # Keep version in sync with pyproject.toml and copy.bara.sky!
103
- - python-version : " 3.12 "
117
+ - python-version : " 3.13 "
104
118
os : " ubuntu-latest"
105
119
jax-version : " nightly"
106
120
steps :
0 commit comments