From b745061e0b731063d918094685263ff597c98133 Mon Sep 17 00:00:00 2001 From: Eleftherios Zisis Date: Mon, 5 Feb 2024 13:45:10 +0100 Subject: [PATCH 1/2] Test for python3.12 --- .github/workflows/run-tox.yml | 2 +- tests/core/test_neuron.py | 6 ++++++ tox.ini | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tox.yml b/.github/workflows/run-tox.yml index 9128e131..0f0bae1a 100644 --- a/.github/workflows/run-tox.yml +++ b/.github/workflows/run-tox.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/tests/core/test_neuron.py b/tests/core/test_neuron.py index 4e1fbf73..ed588c48 100644 --- a/tests/core/test_neuron.py +++ b/tests/core/test_neuron.py @@ -46,6 +46,12 @@ def test_load_morphology_pathlib(): nm.load_morphology(SWC_PATH / 'simple.swc') +def test_morphology__sections(): + """Test that we can get the sections from a morph without storing it to a var first. + """ + nm.load_morphology(SWC_PATH / 'simple.swc').sections + + def test_load_morphology_from_other_morphologies(): filename = SWC_PATH / 'simple.swc' diff --git a/tox.ini b/tox.ini index 4550d8a4..e4e40293 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ envlist = docs coverage tutorial - py{38,39,310,311} + py{38,39,310,311,312} [testenv] deps = @@ -71,3 +71,4 @@ python = 3.9: py39, docs 3.10: py310, tutorial 3.11: py311 + 3.12: py312 From f6b770b62bd0e156919cbd3d2f788c327df67fbe Mon Sep 17 00:00:00 2001 From: Eleftherios Zisis Date: Mon, 5 Feb 2024 13:46:18 +0100 Subject: [PATCH 2/2] Remove --- tests/core/test_neuron.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/core/test_neuron.py b/tests/core/test_neuron.py index ed588c48..4e1fbf73 100644 --- a/tests/core/test_neuron.py +++ b/tests/core/test_neuron.py @@ -46,12 +46,6 @@ def test_load_morphology_pathlib(): nm.load_morphology(SWC_PATH / 'simple.swc') -def test_morphology__sections(): - """Test that we can get the sections from a morph without storing it to a var first. - """ - nm.load_morphology(SWC_PATH / 'simple.swc').sections - - def test_load_morphology_from_other_morphologies(): filename = SWC_PATH / 'simple.swc'