-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (28 loc) · 892 Bytes
/
pythonapp.yml
File metadata and controls
32 lines (28 loc) · 892 Bytes
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
name: Require pull request
on:
# quick tests for every pull request
push:
branches:
- main
pull_request:
jobs:
runtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run unit test
run: |
# set vars
export MONAI_EXTRA_TEST_DATA=$(pwd)
export MONAI_PATH=~/MONAI
# checkout MONAI, pip install requirements and setup
git clone https://github.com/Project-MONAI/MONAI.git --depth 1 $MONAI_PATH
cd $MONAI_PATH
pip install --user --upgrade -r ${MONAI_PATH}/requirements-min.txt
BUILD_MONAI=0 python setup.py develop # no compile of extensions
# run unit test
python -m unittest -v tests/test_network_consistency.py