-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1.52 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
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
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 TMalign
run: |
wget https://zhanggroup.org/TM-align/TMalign.cpp
g++ -static -O3 -ffast-math -lm -o TMalign TMalign.cpp
export PATH=$(pwd):$PATH
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest Cython
pip install torch==1.12.0 torch-scatter==2.0.9 torch-sparse==0.6.15 torch-cluster==1.6.0 torch-spline-conv==1.2.1 torch-geometric==2.1.0.post1 -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
pip install tensorflow
pip install dgl
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
export PATH=$(pwd):$PATH
pip install -r requirements.txt
pip install coverage
coverage run --source proteinshake -m pytest
coverage report -m
coverage xml
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: pytest
name: proteinshake
fail_ci_if_error: true
verbose: true