-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
70 lines (62 loc) · 1.79 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: python
branches:
only:
- main
- develop
python:
- 3.6
- 3.7
- 3.8
before_install:
- python --version
- pip install -U pip --upgrade
- pip install -U setuptools --upgrade
install:
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
- pip install -e .
- pip install -e examples/toy_dataset
script:
- wormpose -v
- coverage run --source wormpose -m pytest tests && coverage report
- PYTHONHASHSEED=0 wormpose calibrate toy toy_data --random_seed 123
- PYTHONHASHSEED=0 wormpose datagen toy toy_data --num_train_samples 200 --num_eval_samples 200 --random_seed 123
- PYTHONHASHSEED=0 wormpose train toy_data --epochs 1 --random_seed 123
- PYTHONHASHSEED=0 wormpose predict toy_data --score_threshold 0.0 --random_seed 123
- wormpose postprocess toy_data
- wormpose viz toy_data
- PYTHONHASHSEED=0 wormpose evaluate toy_data --num_samples 10 --random_seed 123
- wormpose export toy_data
stages:
- formatting
- test
- docs
jobs:
include:
- stage: formatting
python: 3.6
install:
- pip install -r requirements_dev.txt
script:
- black --check wormpose
- black --check tests
- stage: docs
python: 3.6
addons:
apt:
packages:
- pandoc
install:
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
script:
- pandoc examples/toy_dataset/README.md -o docs/source/custom_loader.rst
- pandoc README.md -o readme.rst && cat readme.rst docs/_templates/contents.rst >> docs/source/index.rst
- cd docs && make html
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: main
local_dir: docs/build/html/