-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (37 loc) · 1.31 KB
/
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
33
34
35
36
37
38
39
name: Tests
on: [ push, pull_request ]
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.8", "3.10" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set PyTest options
if: github.event_name == 'pull_request'
run:
echo "PYTEST_ADDOPTS=-m 'not nonpublic'" >> $GITHUB_ENV
- name: Check PyTest options
run:
echo $PYTEST_ADDOPTS
- name: Install dependencies
run: |
pip install "tox<4.0.0"
BIOONTOLOGY_VERSION=1.30
echo "bio ontology version: ${BIOONTOLOGY_VERSION}"
mkdir -p $HOME/.indra/bio_ontology/$BIOONTOLOGY_VERSION
wget -nv https://bigmech.s3.amazonaws.com/travis/bio_ontology/$BIOONTOLOGY_VERSION/mock_ontology.pkl -O $HOME/.indra/bio_ontology/$BIOONTOLOGY_VERSION/bio_ontology.pkl
- name: Test with pytest
run:
tox -e py
env:
INDRA_NEO4J_URL: ${{ secrets.INDRA_NEO4J_URL }}
INDRA_NEO4J_USER: ${{ secrets.INDRA_NEO4J_USER }}
INDRA_NEO4J_PASSWORD: ${{ secrets.INDRA_NEO4J_PASSWORD }}