2020-10-05 07:29:27 +02:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
|
|
# events but only for the main branch
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-03 14:31:44 +02:00
|
|
|
python-version: [3.6, 3.7, 3.8]
|
2020-10-05 07:29:27 +02:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
env:
|
|
|
|
LD_LIBRARY_PATH: /home/runner/.mujoco/mujoco200/bin
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Poetry
|
|
|
|
run: pip install poetry
|
|
|
|
- name: Install Mujoco Dependencies
|
2021-06-02 03:24:58 +02:00
|
|
|
run: sudo apt update && sudo apt install libosmesa6-dev libglfw3 libglew-dev patchelf libgl1-mesa-glx -y
|
2020-10-05 07:29:27 +02:00
|
|
|
- name: Install Mujoco
|
|
|
|
run: |
|
|
|
|
mkdir ~/.mujoco
|
|
|
|
curl -sO https://www.roboti.us/download/mujoco200_linux.zip
|
|
|
|
unzip mujoco200_linux.zip
|
|
|
|
mv mujoco200_linux ~/.mujoco/mujoco200
|
|
|
|
echo "${{ secrets.MUJOCO_KEY }}" > ~/.mujoco/mjkey.txt
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
poetry install
|
|
|
|
poetry run python -m pip freeze
|
|
|
|
poetry run test
|