Skip to content

Commit 7a3ea61

Browse files
committed
Update Python dependencies and fix GitHub Actions workflow
chore: upgrade `actions/checkout` to v5 in .github/workflows/main.yml chore: upgrade `conda-incubator/setup-miniconda` to v3 in .github/workflows/main.yml chore: upgrade `codecov/codecov-action` to v5 in .github/workflows/main.yml chore: update Ubuntu runner to `ubuntu-latest` in .github/workflows/main.yml chore: add Python 3.8~1.13 to matrix strategy in .github/workflows/main.yml chore: Configure retries and timeouts for conda downloads in .github/workflows/main.yml chore: update python version in setup.py to match the one in environment.yml
1 parent d77d63e commit 7a3ea61

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Testing MNE-Features on Ubuntu 20.04
1+
name: Testing MNE-Features on the latest Ubuntu
22
on:
33
push:
44
branches:
@@ -9,23 +9,35 @@ on:
99

1010
jobs:
1111
tests:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313
env:
14-
PYTHON_VERSION: '3.8'
1514
CONDA_ENV: 'environment.yml'
1615
strategy:
1716
matrix:
18-
python-version: [ "3.8" ]
17+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
1918
numba: [ "on", "off" ]
2019
continue-on-error: true
2120
name: python-${{ matrix.python-version }}-numba-${{ matrix.numba }}
2221
steps:
23-
- uses: actions/checkout@v2
24-
- uses: conda-incubator/setup-miniconda@v2
22+
- uses: actions/checkout@v5
23+
# Sometimessetup-miniconda shows CondaHTTPError.
24+
# To mitigate, following config is added.
25+
# Jobs may still fail with CondaHTTPError. In than case, re-run the failed jobs.
26+
# Ref: https://github.com/conda-incubator/setup-miniconda/issues/129
27+
- name: Prepare conda config before installation
28+
run: |
29+
cat <<EOF > .condarc
30+
remote_max_retries: 10
31+
remote_backoff_factor: 5
32+
remote_connect_timeout_secs: 60
33+
remote_read_timeout_secs: 120
34+
EOF
35+
- uses: conda-incubator/setup-miniconda@v3
2536
with:
2637
activate-environment: 'mne-features'
27-
python-version: ${{ env.PYTHON_VERSION }}
38+
python-version: ${{ matrix.python-version }}
2839
environment-file: ${{ env.CONDA_ENV }}
40+
condarc-file: .condarc
2941
name: Install Miniconda and create environment
3042
- if: ${{ matrix.numba == 'off' }}
3143
shell: bash -el {0}
@@ -46,6 +58,6 @@ jobs:
4658
run: check-manifest --ignore doc,mne_features/*/tests
4759
name: Check manifest
4860
- name: Upload coverage stats
49-
uses: codecov/codecov-action@v1
61+
uses: codecov/codecov-action@v5
5062
with:
5163
file: ./coverage.xml

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def package_tree(pkgroot):
5757
'Programming Language :: Python :: 3',
5858
],
5959
platforms='any',
60-
python_requires='>=3.6',
60+
python_requires='>=3.8',
6161
packages=package_tree('mne_features'),
6262
install_requires=['numpy', 'scipy', 'numba', 'scikit-learn', 'mne',
6363
'PyWavelets', 'pandas'],

0 commit comments

Comments
 (0)