-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #510 from NeuroTechX/develop
Stable version 1.0.0
- Loading branch information
Showing
157 changed files
with
9,611 additions
and
3,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Test-braindecode | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
branches: [develop] | ||
|
||
jobs: | ||
test: | ||
name: dev ${{ matrix.os }}, py-${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout MOABB | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout Braindecode | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: braindecode/braindecode | ||
path: braindecode | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Create/Restore MNE Data Cache | ||
id: cache-mne_data | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/mne_data | ||
key: ${{ runner.os }}-mne | ||
|
||
- name: Load cached venv | ||
if: runner.os != 'Windows' | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: | ||
testvenv-${{ matrix.os }}-py${{matrix.python-version}}-${{ | ||
hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: | | ||
(runner.os != 'Windows') && | ||
(steps.cached-poetry-dependencies.outputs.cache-hit != 'true') | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install library | ||
run: poetry install --no-interaction | ||
|
||
- name: Install and test braindecode | ||
run: | | ||
source $VENV | ||
poetry run pip install torch | ||
cd braindecode | ||
poetry run pip install -e .[tests] | ||
poetry run pytest test/ | ||
# poetry run pip install -U https://api.github.com/repos/braindecode/braindecode/zipball/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.