|
1 | | -name: Testing MNE-Features on Ubuntu 20.04 |
| 1 | +name: Test MNE-Features |
| 2 | +concurrency: |
| 3 | + group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} |
| 4 | + cancel-in-progress: true |
2 | 5 | on: |
3 | 6 | push: |
4 | 7 | branches: |
|
7 | 10 | branches: |
8 | 11 | - '*' |
9 | 12 |
|
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + |
10 | 16 | jobs: |
11 | 17 | tests: |
12 | | - runs-on: ubuntu-20.04 |
13 | | - env: |
14 | | - PYTHON_VERSION: '3.8' |
15 | | - CONDA_ENV: 'environment.yml' |
| 18 | + runs-on: ubuntu-latest |
16 | 19 | strategy: |
17 | 20 | matrix: |
18 | | - python-version: [ "3.8" ] |
| 21 | + python-version: [ "3.13" ] |
19 | 22 | numba: [ "on", "off" ] |
| 23 | + defaults: |
| 24 | + run: |
| 25 | + shell: bash -el {0} |
20 | 26 | continue-on-error: true |
21 | 27 | name: python-${{ matrix.python-version }}-numba-${{ matrix.numba }} |
22 | 28 | steps: |
23 | 29 | - uses: actions/checkout@v2 |
24 | 30 | - uses: conda-incubator/setup-miniconda@v2 |
25 | 31 | with: |
26 | 32 | activate-environment: 'mne-features' |
27 | | - python-version: ${{ env.PYTHON_VERSION }} |
28 | | - environment-file: ${{ env.CONDA_ENV }} |
| 33 | + python-version: ${{ matrix.python-version }} |
| 34 | + environment-file: 'environment.yml' |
29 | 35 | name: Install Miniconda and create environment |
30 | 36 | - if: ${{ matrix.numba == 'off' }} |
31 | | - shell: bash -el {0} |
32 | 37 | run: pip uninstall --yes --quiet numba |
33 | 38 | name: Uninstall numba |
34 | | - - shell: bash -el {0} |
35 | | - run: pip install --upgrade pytest pytest-cov flake8 check-manifest pytest-sugar |
| 39 | + - run: pip install --upgrade pytest pytest-cov flake8 check-manifest pytest-sugar |
36 | 40 | name: Install test utilities |
37 | | - - shell: bash -el {0} |
38 | | - run: python setup.py develop --no-deps |
39 | | - name: Install MNE-Features |
40 | | - - shell: bash -el {0} |
41 | | - run: | |
42 | | - flake8 --count mne_features |
43 | | - pytest --cov=mne_features --cov-report=xml --verbose mne_features/tests |
44 | | - name: Run tests (with coverage) |
45 | | - - shell: bash -el {0} |
46 | | - run: check-manifest --ignore doc,mne_features/*/tests |
47 | | - name: Check manifest |
48 | | - - name: Upload coverage stats |
49 | | - uses: codecov/codecov-action@v1 |
| 41 | + - run: pip install --no-deps -ve . |
| 42 | + - run: flake8 --count mne_features |
| 43 | + - run: pytest --cov=mne_features --cov-report=xml --verbose mne_features/tests |
| 44 | + - run: check-manifest --ignore doc,mne_features/*/tests |
| 45 | + - uses: codecov/codecov-action@v5 |
50 | 46 | with: |
51 | | - file: ./coverage.xml |
| 47 | + token: '1873840c-bd0f-4085-b7da-8b57b680d848' |
| 48 | + if: success() || failure() |
0 commit comments