Skip to content

Commit

Permalink
Updated makefile with correct conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 committed Jan 31, 2025
1 parent 849ebee commit 5eec0d4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activ
install_test:
#conda install --channel=conda-forge --name=base mamba -y
#conda env remove -n nih2mne_test
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne<3.12" "python<3.12" "numba<0.60" pip -y
($(CONDA_ACTIVATE) enigma_meg_test ; pip install -e .[testing]; pip install pytest pytest-reportlog )
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne=1.5" "python<3.12" "numba<0.60" pip -y
($(CONDA_ACTIVATE) nih2mne_test ; pip install -e .[testing]; pip install pytest pytest-reportlog )
git submodule init
git pull --recurse-submodules

install_headless_env:
#conda install --channel=conda-forge --name=base mamba -y
conda env remove -n nih2mne_test
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne<1.7" "python<3.12" pip "vtk>=9.2=*osmesa*" "mesalib=21.2.5" -y
($(CONDA_ACTIVATE) enigma_meg_test ; pip install -e .[testing]; pip install pytest pytest-reportlog )
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne=1.5" "python<3.12" "numba<0.60" pip "vtk>=9.2=*osmesa*" "mesalib=21.2.5" -y
($(CONDA_ACTIVATE) nih2mne_test ; pip install -e .[testing]; pip install pytest pytest-reportlog )
git submodule init
git pull --recurse-submodules

Expand All @@ -30,12 +30,10 @@ create_bids:
cd nih2mne/test_data ; make_meg_bids.py -bids_dir ./BIDS -subjid_input ABABABAB -meg_input_dir 20010101 -bids_id S01 -mri_bsight MRI/ABABABAB_refaced_T1w.nii.gz -mri_bsight MRI/ABABABAB_elec.txt

test:
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; pytest -vv --report-log=/tmp/enigma_MEG_test_logfile.txt )
($(CONDA_ACTIVATE) nih2mne_test ; pytest -vv )

test_headless:
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; xvfb-run -a pytest -vv --report-log=/tmp/enigma_MEG_test_logfile.txt )
($(CONDA_ACTIVATE) nih2mne_test ; pytest -vv ) #cd enigma_MEG; xvfb-run -a pytest -vv --report-log=/tmp/enigma_MEG_test_logfile.txt )


test_iterate_fs:
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; pytest -vv --report-log=./test_logfile.txt ) #xvfb-run -a pytest -s )

0 comments on commit 5eec0d4

Please sign in to comment.