-
Notifications
You must be signed in to change notification settings - Fork 68
/
.gitlab-ci.yml
36 lines (31 loc) · 1.04 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
image: continuumio/miniconda3:latest
stages:
- test
variables:
PYVERSION: "3.11"
LOGCAPTURE_LEVEL: "DEBUG"
CODECOV_TOKEN: "034f0bb1-e590-406f-820c-4e7c41b17712"
# set up the basic job
.runtests:
before_script:
- "conda create --prefix /root/factordev --channel conda-forge --file requirements.txt python=${PYVERSION} curl nose2 coverage --yes --quiet"
- /root/factordev/bin/pip install -e .
- /root/factordev/bin/curl -o /root/factordev/bin/codecov https://uploader.codecov.io/latest/linux/codecov
- chmod +x /root/factordev/bin/codecov
script:
- "/root/factordev/bin/nose2 -s tests ${TESTFILES}"
- "/root/factordev/bin/coverage xml"
after_script:
- /root/factordev/bin/codecov
# first set of test files
testset1:
extends: ".runtests"
variables:
TESTFILES: "test_expected_confirmatory_factor_analyzer test_factor_analyzer"
stage: "test"
# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "test_expected_factor_analyzer test_expected_rotator test_utils"
stage: "test"