-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (38 loc) · 1.19 KB
/
test.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
name: Testing - main
on: [push, pull_request]
jobs:
test:
name: Testing (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [
"ubuntu-latest",
#"macos-latest",
# "windows-latest"
]
python-version: ["3.7"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -c conda-forge rdkit openbabel==3.1.1
conda install -c conda-forge tqdm
conda install -c conda-forge tabulate
#git clone https://github.com/polysimtools/pysimm
#sudo python pysimm/complete_install.py --pysimm $PWD
#source ~/.bashrc
python -m pip install --upgrade pip
pip install networkx
pip install -e .
- name: pytest
shell: bash -l {0}
run: |
pip install pytest pytest-cov
pytest test/test.py --color=yes --cov=psp --cov-report html:coverage_reports