ci/nightly #1109
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: ci/nightly | |
on: | |
schedule: | |
- cron: '05 6 * * *' | |
jobs: | |
onprem: | |
name: python ${{ matrix.image }} on-prem test | |
runs-on: ["self-hosted"] | |
strategy: | |
matrix: | |
image: ["allensdk_local_py38:latest"] | |
branch: ["master", "rc/**"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ matrix.branch }} | |
- name: run test in docker | |
run: | | |
docker run \ | |
--env-file ~/env_nightly.list \ | |
--mount type=bind,source=$PWD,target=/home/ghworker,bind-propagation=rshared \ | |
--mount type=bind,source=/data/informatics/module_test_data/,target=/data/informatics/module_test_data/,bind-propagation=rshared,ro \ | |
--mount type=bind,source=/allen/,target=/allen/,bind-propagation=rshared,ro \ | |
--mount type=tmpfs,destination=/tmp \ | |
--rm \ | |
${{ matrix.image }} \ | |
/bin/bash -c "pip install -r requirements.txt; \ | |
pip install -r test_requirements.txt; \ | |
pip install -e .; \ | |
python -m pytest \ | |
--log-level=INFO \ | |
--capture=no \ | |
--cov=allensdk \ | |
--cov-config coveragerc \ | |
--cov-report html \ | |
--junitxml=test-reports/test.xml \ | |
--boxed \ | |
--numprocesses auto \ | |
--durations=0" |