-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
63 lines (54 loc) · 1.87 KB
/
.gitlab-ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image: continuumio/miniconda3:latest
stages:
- test
variables:
PYVERSION: "3.7"
RSMVERSION: "8.1.0"
BINPATH: "/root/rsmenv/bin"
TESTDIR: "/root/rsmcode/tests"
# set up the basic job to run only for pull requests
.runtests:
only:
- external_pull_requests
before_script:
- mkdir /root/rsmcode
- cd /root/rsmcode
- git init
- git remote add -f origin https://github.com/EducationalTestingService/rsmtool.git
- git config core.sparsecheckout true
- echo "tests/*" > .git/info/sparse-checkout
- git pull --depth=1 origin main
- conda create --prefix /root/rsmenv python=3.7 --yes
- /root/rsmenv/bin/pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple rsmtool==${RSMVERSION} nose parameterized
script:
- "/root/rsmenv/bin/nosetests --nologcapture -w ${TESTDIR} ${TESTFILES}"
# first set of test files
testset1:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmtool_1.py"
stage: "test"
# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "test_comparer.py test_configuration_parser.py test_experiment_rsmtool_2.py"
stage: "test"
# third set of test files
testset3:
extends: ".runtests"
variables:
TESTFILES: "test_analyzer.py test_experiment_rsmeval.py test_fairness_utils.py test_utils_prmse.py test_container.py test_test_utils.py test_cli.py"
stage: "test"
# fourth set of test files
testset4:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmcompare.py test_experiment_rsmsummarize.py test_modeler.py test_preprocessor.py test_writer.py test_experiment_rsmtool_3.py"
stage: "test"
# fifth set of test files
testset5:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmpredict.py test_reader.py test_reporter.py test_transformer.py test_utils.py test_experiment_rsmtool_4.py"
stage: "test"