-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
36 lines (33 loc) · 1.28 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
# Only run the pipeline for merge-requests
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
# Use our custom Docker image with Ubuntu 22.04, MuJoCo and CoppeliaSim
image: collaborating.tuhh.de:5005/ckv0173/scilab-rl/scilabrl
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
HOME: "/root"
run-smoke-and-performance-tests:
# cache the pip cache for every branch
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- .cache/pip
script:
- echo "Installing python libraries"
- bash scripts/setup.sh
- source /root/miniforge3/etc/profile.d/conda.sh
- source ~/.bashrc
- source scripts/set_paths.sh
- conda activate scilabrl
- which nvidia-smi && nvidia-smi || echo "nvidia-smi is not available"
- conda install -c conda-forge ncurses -y
- export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
- pip install "importlib-metadata~=4.13" # bug fix for gym issues/3122
- export HYDRA_FULL_ERROR=1
- echo "running smoke tests"
- ./scripts/run_smoke_tests.sh
# - echo "running performance tests"
# - ./scripts/run_performance_tests.sh