-
Notifications
You must be signed in to change notification settings - Fork 147
65 lines (52 loc) · 1.58 KB
/
testing.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: Testing
on:
push:
branches:
- master
pull_request:
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2019]
python-version: [3.8]
torch-version: [2.0.0, 2.1.0]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch ${{ matrix.torch-version }}
run: |
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install torch-scatter
run: |
pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
- name: Install METIS
if: ${{ runner.os != 'Windows' }}
run: |
bash .github/workflows/metis.sh
- name: Install METIS on Windows
if: ${{ runner.os == 'Windows' }}
run: |
bash .github/workflows/metis-${{ runner.os }}.sh
- name: Install main package
run: |
pip install scipy==1.10.1 # Python 3.8 support
python setup.py develop
env:
WITH_METIS: 1
- name: Run test-suite
run: |
pip install pytest pytest-cov
pytest --cov --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
if: success()
with:
fail_ci_if_error: false