-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ci.yml
64 lines (57 loc) · 1.41 KB
/
.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
image: debian:latest
stages:
- test
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
- apt-get install python3 python3-pip git libsm6 libxext6 ffmpeg -y
- pip3 install --break-system-packages --upgrade pip
- pip3 install --break-system-packages .
- pip3 install --break-system-packages yapf pytest pytest-cov
Lint-with-yapf:
stage: test
script:
- ./.github/check_code_formatting.sh
Test-with-pytest:
stage: test
script:
- ./.github/run_tests.sh
artifacts:
when: on_failure
paths:
- ./tests/logs
Documentation:
stage: test
image: $CI_DOCS_DOCKER_IMAGE
tags:
- docs
variables:
DOCS_DIR: 'docs'
before_script:
- echo "Building the documentation"
script:
- cd $DOCS_DIR
- pip3 install -r requirements.txt
- make html latexpdf
- cp build/latex/*.pdf build/html
- tar cf ../$CI_DOCS_ARCHIVE -C build/html/ .
artifacts:
paths:
- $DOCS_DIR/build
- $CI_DOCS_ARCHIVE
Test-export:
stage: test
script:
- ./.github/export.sh
artifacts:
paths:
- export
when: always
Test-performance:
stage: test
script:
- ./.github/performance.sh
Test-prediction:
stage: test
script:
- ./.github/prediction_test.sh