This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
68 lines (57 loc) · 1.88 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
63
64
65
66
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [3.7, 3.8]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version }}
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.version }}
conda-channels: anaconda
- run: conda --version
- run: which python
- name: install conda dependenies
run: conda install scipy mpi4py h5py
- name: install torch
env:
TORCH: "1.8.0"
TORCH_VISION: "0.9.0"
run: pip install torch==${TORCH}+cpu torchvision==${TORCH_VISION}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: install torch geometric
env:
TORCH_GEO: "1.8.0"
run: |
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html
pip install torch-geometric
- name: Install the package
run: pip install .[test]
env:
CONDA_PREFIX: /usr/share/miniconda
- name: Test with pytest
env:
CONDA_PREFIX: /usr/share/miniconda
run: |
pytest --cov-config setup.cfg
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
COVERALLS_FLAG_NAME: python-${{ matrix.version }}
run: |
coveralls --service=github