adding code to get data for strain lit tab pages #1072
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: run tests | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-python@v2 | |
name: setup python | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 4 | |
- name: Run Tests | |
run: | | |
python setup.py install | |
printf 'export NEX2_URI="postgresql://"\n' > test_variables.sh | |
printf 'export ES_URI="http://localhost:9200/"\n' >> test_variables.sh | |
printf 'export S3_BUCKET="S3 BUCKET"\n' >> test_variables.sh | |
printf 'export S3_SECRET_KEY="S3 SECRET KEY"\n' >> test_variables.sh | |
printf 'export S3_ACCESS_KEY="S3 ACCESS KEY"\n' >> test_variables.sh | |
printf 'export BOTO_CONFIG=/dev/null\n' >> test_variables.sh | |
printf 'export PREVIEW_URL="https://preview.yeastgenome.org/"\n' >> test_variables.sh | |
make NOSEOPTS='--with-coverage' tests |