forked from pyg-team/pytorch_geometric
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.86 KB
/
examples.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
name: Examples
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 7 * * *" # Everyday at 7:00am UTC/11:00pm PST
jobs:
pytest:
if: github.repository == 'pyg-team/pytorch_geometric'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9]
torch-version: [1.11.0]
include:
- torch-version: 1.11.0
torchvision-version: 0.12.0
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
run: |
pip install torch==${{ matrix.torch-version}}+cpu torchvision==${{ matrix.torchvision-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install internal dependencies
run: |
pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
- name: Install main package
run: |
pip install .[benchmark]
- name: Run GCN on Cora
run: |
python examples/gcn.py --wandb
env:
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
- name: Run GAT on Cora
run: |
python examples/gat.py --wandb
env:
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
- name: Run GIN on MUTAG
run: |
python examples/mutag_gin.py --wandb
env:
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
- name: Run GNNExplainer
run: |
pip install networkx matplotlib
python examples/gnn_explainer.py