Deploy Action aktiviert #2
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, Build an Deploy | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
jobs: | |
test_build_and_deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
pip install poethepoet | |
poetry config virtualenvs.in-project true | |
poetry install -E mne -E jupyter | |
- name: Testing | |
if: ${{ matrix.python-version == '3.10' }} | |
run: | | |
poetry run poe test | |
- name: Building | |
if: ${{ matrix.python-version == '3.10' }} | |
run: | | |
poetry run poe build_pipelines | |
- name: Deploy to Github Pages | |
if: ${{ matrix.python-version == '3.10' }} | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: gh-pages | |
build_dir: index | |
keep_history: true | |
commit_message: Automatic deployment to GitHub Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |