File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
1313
1414 strategy :
1515 matrix :
16- python-version : ["3.7 ", "3.8 ", "3.9 "]
16+ python-version : ["3.10 ", "3.11 ", "3.12 "]
1717 os : [ubuntu-latest]
1818
1919 steps :
20- - uses : " actions/checkout@v2 "
21- - uses : " actions/setup-python@v1 "
20+ - uses : " actions/checkout@v4 "
21+ - uses : " actions/setup-python@v4 "
2222 with :
2323 python-version : " ${{ matrix.python-version }}"
2424 - name : Run CI tests
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def _parse_requirements(path):
5858 tests_require = _parse_requirements (
5959 os .path .join (_CURRENT_DIR , 'requirements' , 'requirements-test.txt' )),
6060 zip_safe = False , # Required for full installation.
61- python_requires = '>=3.7 ' ,
61+ python_requires = '>=3.9 ' ,
6262 classifiers = [
6363 'Development Status :: 4 - Beta' ,
6464 'Intended Audience :: Science/Research' ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ python --version
2525
2626# Install dependencies.
2727pip install --upgrade pip setuptools wheel
28- pip install flake8 pytest-xdist pytype pylint pylint-exit
28+ pip install flake8 pytest-xdist pylint pylint-exit
2929pip install -r requirements/requirements.txt
3030pip install -r requirements/requirements-test.txt
3131
@@ -46,7 +46,13 @@ pip wheel --verbose --no-deps --no-clean dist/mctx*.tar.gz
4646pip install mctx* .whl
4747
4848# Check types with pytype.
49- pytype ` find mctx/_src/ -name " *py" | xargs` -k
49+ # Note: pytype does not support 3.12 as of 23.11.23
50+ # See https://github.com/google/pytype/issues/1308
51+ if [ ` python -c ' import sys; print(sys.version_info.minor)' ` -lt 12 ];
52+ then
53+ pip install pytype
54+ pytype ` find mctx/_src/ -name " *py" | xargs` -k
55+ fi ;
5056
5157# Run tests using pytest.
5258# Change directory to avoid importing the package from repo root.
You can’t perform that action at this time.
0 commit comments