-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.65 KB
/
build.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
name: build with conda
on: [push]
env:
TORCH: "1.8.1"
CONDA_PREFIX: /usr/share/miniconda
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [3.7, 3.8, 3.9]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.version }}
conda-channels: anaconda
- name: install dependencies
run: |
# torch==1.8.1 dependencies
conda install scipy rdkit pytorch==${TORCH} torchvision cpuonly -c pytorch -c conda-forge
pip install "gpytorch<=1.5.1" # TODO: Remove when switching to pytorch >=1.9
pip install dgl
# torch-geometric dependencies
pip install --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-${TORCH}+cpu.html
pip install --no-index torch-sparse -f https://pytorch-geometric.com/whl/torch-${TORCH}+cpu.html
pip install --no-index torch-cluster -f https://pytorch-geometric.com/whl/torch-${TORCH}+cpu.html
pip install --no-index torch-spline-conv -f https://pytorch-geometric.com/whl/torch-${TORCH}+cpu.html
# The package
pip install .[test,doc]
- name: Conda info
run: conda info
- name: Conda list
run: conda list -n base
- name: Test with pytest
run: |
pytest
- name: coverage
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
name: codecov-umbrella