-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 962 Bytes
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libstdc++6 graphviz python3-dev libgraphviz-dev pkg-config
python -m pip install --upgrade pip
pip install -e .[tests]
pip install termcolor cachetools httpx
git clone https://github.com/indralab/depmap_analysis.git
- name: Run unit tests
run: |
export NOSEATTR="!notravis"
export PYTHONPATH=$PYTHONPATH:depmap_analysis
nosetests -v -a $NOSEATTR indra_network_search/tests