-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.17 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: tests & build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: bids_bep16_conv
use-mamba: false
channels: conda-forge, defaults, mrtrix3
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
pip install -r requirements-dev.txt
- name: Install mrtrix
shell: bash -l {0}
run: |
conda install mrtrix3
- name: Install bids_bep16_conv
shell: bash -l {0}
run: |
pip install ./
- name: Test code
shell: bash -l {0}
run: |
pytest
flake8
- name: Build the docs
shell: bash -l {0}
run: |
cd docs && make clean html
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
commit_message: ${{ github.event.head_commit.message }}