make two CI runs, for skorch github/conda
@@ -8,6 +8,9 @@ on:
jobs:
Install-Test-Doc-Braindecode:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ skorch_version: ['github', 'conda']
defaults:
run:
shell: bash -l {0}
@@ -39,8 +42,9 @@ jobs:
# Install MOABB as well
- name: Install MOABB
run: pip install moabb
- # Use skorch master
+ # Use skorch github master if requested, otherwise has been installed via conda in environment.yaml
- name: Install Skorch master from git repo
+ if: ${{ matrix.skorch_version == 'github' }}
run: pip install git+https://github.com/skorch-dev/skorch.git
- name: Install Braindecode from Current Checkout
run: pip install -e .
@@ -82,7 +86,7 @@ jobs:
path: ./docs/_build/
- name: Deploy to Github Pages if on Master
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.skorch_version == 'conda'}}
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
