Skip to content

Commit

Permalink
Add skip tests temporarily until pyqt testing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Feb 14, 2025
1 parent 6334e07 commit a42d9c0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/nih2mne-actions.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
name: nih2mne-tests
on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
Pytest:
name: InstallAndTest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
- uses: actions/checkout@v4
with:
python-version: 3.12
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
- name: Install dependencies and pull data
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install MNE
shell: bash -el {0}
run: conda install --override-channels --channel=conda-forge 'python<3.12' pytest 'mne=1.5' 'numba<0.60'
- name: Install Git
run: apt install git
- name: Pip Install nih2mne
shell: bash -el {0}
run: make install_test
run: $CONDA/bin/pip install git+https://github.com/nih-megcore/nih_to_mne.git
- name: Pytest
shell: bash -el {0}
run: make test
run: $CONDA/bin/pytest

9 changes: 5 additions & 4 deletions nih2mne/GUI/tests/test_trigger_code_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
import os, os.path as op
import nih2mne
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication
from nih2mne.GUI.trigger_code_gui import event_coding_Window
#from PyQt5 import QtWidgets
#from PyQt5.QtWidgets import QApplication
#from nih2mne.GUI.trigger_code_gui import event_coding_Window

@pytest.mark.skip(reason="Pyqt import lib issue")
def test_window():
from PyQt5.QtTest import QTest
from PyQt5.QtCore import Qt
Expand Down Expand Up @@ -102,4 +103,4 @@ def test_window():
# del self.events_to_write
self.write_parser_script()



0 comments on commit a42d9c0

Please sign in to comment.