forked from NeuroTechX/moabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding what's new and correct doc (NeuroTechX#200)
* add cache for poetry, datasets and html docs * correct doc building error, add whatsnew, update class/function template * adding gh function from braindecode/MNE * correct cache path for docs, dont cache venv for windows test
- Loading branch information
Sylvain Chevallier
authored
Jun 14, 2021
1 parent
92b1be5
commit f2c0fe8
Showing
14 changed files
with
400 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,9 @@ on: | |
|
||
jobs: | ||
build_docs: | ||
name: ${{ matrix.os }}, py-${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-18.04] | ||
python-version: ["3.6"] | ||
|
@@ -23,21 +22,34 @@ jobs: | |
run: | | ||
mkdir ~/mne_data | ||
- name: Cache datasets | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/mne_data | ||
key: ${{ runner.os }}-${{ hashFiles('moabb/datasets/**') }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Cache poetry, datasets and docs | ||
id: cached-poetry-dataset-docs | ||
uses: actions/cache@v2 | ||
with: | ||
key: | ||
${{ runner.os }}-${{ hashFiles('moabb/datasets/**', '**/poetry.lock') }}-doc | ||
path: | | ||
~/mne_data | ||
.venv | ||
docs/build | ||
- name: Install dependencies | ||
run: | | ||
pip install poetry | ||
poetry install -E external | ||
if: steps.cached-poetry-dataset-docs.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root -E external | ||
|
||
- name: Install library | ||
run: poetry install --no-interaction -E external | ||
|
||
- name: Build docs | ||
run: | | ||
|
@@ -59,6 +71,17 @@ jobs: | |
os: [ubuntu-18.04] | ||
|
||
steps: | ||
- name: Cache poetry, datasets and docs | ||
id: cached-poetry-dataset-docs | ||
uses: actions/cache@v2 | ||
with: | ||
key: | ||
${{ runner.os }}-${{ hashFiles('moabb/datasets/**', '**/poetry.lock') }}-doc | ||
path: | | ||
~/mne_data | ||
.venv | ||
docs/build | ||
- name: Checkout moabb.github.io | ||
uses: actions/checkout@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -11,27 +11,54 @@ jobs: | |
name: ${{ matrix.os }}, py-${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-18.04, windows-latest, macOS-latest] | ||
python-version: ["3.6", "3.7", "3.8", "3.9"] | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: pre-commit/[email protected] | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
if: runner.os != 'Windows' | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: | ||
venv-${{ matrix.os }}-py${{matrix.python-version}}-${{ | ||
hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip poetry wheel | ||
poetry install | ||
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: Run tests | ||
shell: bash | ||
run: | | ||
source $VENV | ||
poetry run python -m unittest moabb.tests | ||
- name: Run pipelines | ||
shell: bash | ||
run: | | ||
source $VENV | ||
poetry run python -m moabb.run --pipelines=./moabb/tests/test_pipelines/ --verbose |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. currentmodule:: moabb | ||
|
||
# Mother of all BCI Benchmarks | ||
|
||
 | ||
|
Empty file.
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
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.