-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
71 lines (56 loc) · 2.19 KB
/
.travis.yml
File metadata and controls
71 lines (56 loc) · 2.19 KB
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
70
71
dist: trusty
language: python
python:
- "3.8"
env:
- PACKAGE_NAME=ChromFormer
install:
# install the package
- pip install --upgrade pip wheel
- pip install --progress-bar off -r requirements.txt
- pip install --progress-bar off -r dev_requirements.txt
- pip install torch-scatter==2.0.7 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
- pip install torch-sparse==0.6.9 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
- pip install torch-geometric==1.7.0 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
- pip install --progress-bar off .
script:
# test import
- python -c "import $PACKAGE_NAME"
# ensure installed commands helps run successfully
# (add as required)
###- salutation --help
###- brief_salutation --help
###- a_shell_script
# run unit tests
####- python -m pytest -sv --cov=$PACKAGE_NAME --cov-fail-under=65
# static type checking
####- python -m mypy $PACKAGE_NAME
# style checking
####- python -m black $PACKAGE_NAME --check --diff --color
####- python -m flake8 --per-file-ignores="__init__.py:F401" $PACKAGE_NAME
# the following stages only start if the "test" stage above all succeed
jobs:
include:
- stage: Documentation
python: "3.8"
before_install: skip
install:
- pip install --progress-bar off -r requirements.txt
- pip install --progress-bar off -r dev_requirements.txt
- pip install torch-scatter==2.0.7 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
- pip install torch-sparse==0.6.9 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
- pip install torch-geometric==1.7.0 -f https://pytorch-geometric.com/whl/torch-1.8.1+cpu.html
before_script: skip
script:
# build documentation pages
- cd docs && make html && cd ..
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
# Set in the settings page of your repository, as a secure variable
# see https://docs.travis-ci.com/user/deployment/pages/#setting-the-github-token
local_dir: docs/_build/html
github_url: github.ibm.com
on:
branch: main