-
Notifications
You must be signed in to change notification settings - Fork 150
41 lines (39 loc) · 1.62 KB
/
nightly.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
40
41
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"