-
Notifications
You must be signed in to change notification settings - Fork 37
46 lines (41 loc) · 1.43 KB
/
python-package.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
name: RecBole-GNN tests
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
torch-version: [2.0.0]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true
auto-activate-base: true
# install setuptools as a interim solution for bugs in PyTorch 1.10.2 (#69904)
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install dgl
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
pip install recbole==1.1.1
conda install -c conda-forge faiss-cpu
# Use "python -m pytest" instead of "pytest" to fix imports
- name: Test model
run: |
python -m pytest -v tests/test_model.py