diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ee0eb82d3..5c25461b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ "ubuntu-latest", "macos-latest", "windows-latest" ] - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: ## Install Braindecode - name: Checking Out Repository @@ -53,7 +53,7 @@ jobs: run: pytest --cov=braindecode test/ --cov-report term --cov-report xml:coverage.xml - name: Upload Coverage to Codecov uses: codecov/codecov-action@v4 - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'}} with: fail_ci_if_error: true file: ./coverage.xml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84b4240a5..817c11409 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,7 +62,7 @@ environment. We will use conda, but feel free to use any other solution: ``` -conda create --name braindecode python=3.10 +conda create --name braindecode python=3.11 conda activate braindecode pip install -e .[moabb,tests,docs] ``` diff --git a/pyproject.toml b/pyproject.toml index e4684b988..58a81939e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,12 +33,13 @@ classifiers = [ "Intended Audience :: Science/Research", 'Topic :: Software Development :: Build Tools', "Topic :: Scientific/Engineering :: Artificial Intelligence", - 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', ] readme = "README.rst" -requires-python = ">=3.10" +requires-python = ">=3.11" dependencies = [ 'mne>=1.10.0', 'mne_bids>=0.16', diff --git a/test/unit_tests/training/test_scoring.py b/test/unit_tests/training/test_scoring.py index 7e812ecd3..bb174660d 100644 --- a/test/unit_tests/training/test_scoring.py +++ b/test/unit_tests/training/test_scoring.py @@ -3,7 +3,6 @@ # Robin Tibor Schirrmeister # # License: BSD-3 -import sys import numpy as np import pytest @@ -254,7 +253,6 @@ def test_cropped_time_series_trial_epoch_scoring(): np.testing.assert_almost_equal(mock_skorch_net.history[0]["accuracy"], accuracy) -@pytest.mark.skipif(sys.version_info != (3, 8), reason="Only for Python 3.8") def test_post_epoch_train_scoring(): cuda = False set_random_seeds(seed=20170629, cuda=cuda)