Skip to content

Commit d125dd9

Browse files
author
Vincent Moens
authored
[CI] Fix CI for optional dependencies (#1754)
1 parent f0b4814 commit d125dd9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/unittest/linux_libs/scripts_d4rl/run_test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ lib_dir="${env_dir}/lib"
3535
conda deactivate && conda activate ./env
3636

3737
# this workflow only tests the libs
38-
python -c "import gym, d4rl"
38+
printf "* Smoke test\n"
3939

40+
python -c """import gym
41+
import d4rl
42+
"""
43+
44+
printf "* Tests"
4045
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/test_libs.py --instafail -v --durations 200 --capture no -k TestD4RL --error-for-skips --runslow
4146
coverage combine
4247
coverage xml -i

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ if [ ! -d "${env_dir}" ]; then
4040
fi
4141
conda activate "${env_dir}"
4242

43+
python3 -m pip install pip --upgrade
44+
4345
#pip3 uninstall cython -y
4446
#pip uninstall cython -y
4547
#conda uninstall cython -y
46-
pip3 install "cython<3"
47-
conda install -c anaconda cython="<3.0.0" -y
48+
python3 -m pip install "cython<3" --upgrade
49+
#conda install -c anaconda cython="<3.0.0" -y
4850

4951

5052
# 3. Install mujoco

0 commit comments

Comments
 (0)