Skip to content

Commit be4aa54

Browse files
author
Yang
authored
Merge pull request #675 from dianna-ai/fix_notebooks
664 Fix notebooks for CD/CI
2 parents 68509b8 + 2a108aa commit be4aa54

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/actions/install-python-and-package/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: "Installs Python, updates pip and installs DIANNA together with its
33
inputs:
44
python-version:
55
required: false
6-
description: "The Python version to use. Specify major and minor version, e.g. '3.9'."
7-
default: "3.9"
6+
description: "The Python version to use. Specify major and minor version, e.g. '3.10'."
7+
default: "3.10"
88
extras-require:
99
required: false
1010
description: "The extras dependencies packages to be installed, for instance 'docs' or 'publishing,notebooks'."

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
43-
python-version: ['3.8', '3.11']
43+
python-version: ['3.9', '3.11']
4444
exclude:
4545
# already tested in build_single job
4646
- python-version: 3.11

.github/workflows/notebooks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818

1919
notebooks:
20-
name: Run notebooks on (3.9, ${{ matrix.os }})
20+
name: Run notebooks on (3.10, ${{ matrix.os }})
2121
if: github.event.pull_request.draft == false
2222
runs-on: ${{ matrix.os }}
2323
strategy:

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ command_line = "-m pytest"
1313
[tool.tox]
1414
legacy_tox_ini = """
1515
[tox]
16-
envlist = py38,py39,310
16+
envlist = py38,py39,py310,py311
1717
skip_missing_interpreters = true
1818
1919
[testenv]
@@ -87,7 +87,7 @@ per-file-ignores = {}
8787
# Allow unused variables when underscore-prefixed.
8888
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
8989

90-
target-version = "py39"
90+
target-version = "py310"
9191
line-length = 120
9292

9393
[tool.ruff.isort]

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ install_requires =
4040
lime
4141
matplotlib
4242
numpy
43-
onnx
43+
onnx==1.14.1
4444
onnx_tf
4545
onnxruntime
4646
shap

0 commit comments

Comments
 (0)