This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
forked from DeepRegNet/DeepReg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (40 loc) · 1.68 KB
/
.travis.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
language: python
os: linux
dist: bionic
python:
- "3.7" # current default Python on Travis CI
install:
- pip install -e . # install deepreg package with corresponding requirements
- pip install codecov
jobs:
include:
- stage: "Linting and Docs"
name: "Python Linting"
script:
- black --check .
- flake8 .
- name: "Sphinx Build"
script:
- cd docs
- make clean html
- stage: "Tests"
name: "Unit Tests"
script: pytest --cov-report= --cov=deepreg ./test/unit/
after_success: bash <(curl -s https://codecov.io/bash)
- name: "Command Tests: Unpaired Unlabeled"
script:
- deepreg_train -g "" --config_path deepreg/config/unpaired_labeled_ddf.yaml --log_dir test
- deepreg_predict -g "" --ckpt_path logs/test/save/weights-epoch2.ckpt --mode test
- deepreg_warp --image data/test/nifti/unit_test/moving_image.nii.gz --ddf data/test/nifti/unit_test/ddf.nii.gz --out logs/test_warp/out.nii.gz
- name: "Output Tests: Paired Unlabeled"
script: travis_wait 30 pytest ./test/output/test_paired_unlabeled.py
- name: "Output Tests: Paired Labeled"
script: travis_wait 30 pytest ./test/output/test_paired_labeled.py
- name: "Output Tests: Unpaired Labeled"
script: travis_wait 30 pytest ./test/output/test_unpaired_labeled.py
- name: "Output Tests: Unpaired Unlabeled"
script: travis_wait 30 pytest ./test/output/test_unpaired_unlabeled.py
- name: "Output Tests: Grouped Unlabeled"
script: travis_wait 30 pytest ./test/output/test_grouped_unlabeled.py
- name: "Output Tests: Grouped Labeled"
script: travis_wait 30 pytest ./test/output/test_grouped_labeled.py