Skip to content

Commit

Permalink
[CI] Fix CI for optional dependencies (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Dec 20, 2023
1 parent f0b4814 commit d125dd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/unittest/linux_libs/scripts_d4rl/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ lib_dir="${env_dir}/lib"
conda deactivate && conda activate ./env

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

python -c """import gym
import d4rl
"""

printf "* Tests"
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
coverage combine
coverage xml -i
6 changes: 4 additions & 2 deletions .github/unittest/linux_libs/scripts_d4rl/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ if [ ! -d "${env_dir}" ]; then
fi
conda activate "${env_dir}"

python3 -m pip install pip --upgrade

#pip3 uninstall cython -y
#pip uninstall cython -y
#conda uninstall cython -y
pip3 install "cython<3"
conda install -c anaconda cython="<3.0.0" -y
python3 -m pip install "cython<3" --upgrade
#conda install -c anaconda cython="<3.0.0" -y


# 3. Install mujoco
Expand Down

0 comments on commit d125dd9

Please sign in to comment.