-
Notifications
You must be signed in to change notification settings - Fork 17
/
.gitlab-ci.yml
72 lines (63 loc) · 2.19 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
64
65
66
67
68
69
70
71
72
image: condaforge/mambaforge:latest
stages:
- test
variables:
PYVERSION: "3.10"
BINPATH: "/root/rsmenv/bin"
LOGCAPTURE_LEVEL: "WARNING"
CODECOV_TOKEN: "488304b7-b1c5-4fc7-bfb6-9e7cbcb36a08"
# set up basic job
.runtests:
before_script:
- "mamba create --prefix /root/rsmenv -c conda-forge -c ets --file requirements.dev python=${PYVERSION} curl --yes"
- /root/rsmenv/bin/pip install -e .
- /root/rsmenv/bin/curl -o /root/rsmenv/bin/codecov https://uploader.codecov.io/latest/linux/codecov
- chmod +x /root/rsmenv/bin/codecov
- echo "import os" > sitecustomize.py
- echo "try:" >> sitecustomize.py
- echo " import coverage" >> sitecustomize.py
- echo " os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'" >> sitecustomize.py
- echo " coverage.process_startup()" >> sitecustomize.py
- echo "except ImportError:" >> sitecustomize.py
- echo " pass" >> sitecustomize.py
script:
- "/root/rsmenv/bin/nose2 -s tests ${TESTFILES}"
- "/root/rsmenv/bin/coverage xml"
after_script:
- /root/rsmenv/bin/codecov
# first set of test files
testset1:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmtool_1"
stage: "test"
# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "test_comparer test_configuration_parser test_experiment_rsmtool_2 test_wandb"
stage: "test"
# third set of test files
testset3:
extends: ".runtests"
variables:
TESTFILES: "test_analyzer test_experiment_rsmeval test_fairness_utils test_utils_prmse test_container test_test_utils test_cli"
stage: "test"
# fourth set of test files
testset4:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmcompare test_experiment_rsmsummarize test_modeler test_preprocessor test_writer test_experiment_rsmtool_3"
stage: "test"
# fifth set of test files
testset5:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmpredict test_reader test_reporter test_transformer test_utils test_experiment_rsmtool_4"
stage: "test"
# sixth set of test files
testset6:
extends: ".runtests"
variables:
TESTFILES: "test_experiment_rsmxval test_experiment_rsmexplain test_explanation_utils"
stage: "test"