[pre-commit.ci] pre-commit autoupdate #87
Workflow file for this run
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
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 |