WIP get source counts for get_ora_statements + endpoint #1889
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "bolt://indra-cogex-lb-b954b684556c373c.elb.us-east-1.amazonaws.com:7687" | |
INDRA_NEO4J_USER: ${{ secrets.INDRA_NEO4J_USER }} | |
INDRA_NEO4J_PASSWORD: ${{ secrets.INDRA_NEO4J_PASSWORD }} |