-
Notifications
You must be signed in to change notification settings - Fork 273
39 lines (32 loc) · 1.04 KB
/
metaworld-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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: MetaWorld CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MJKEY: ${{ secrets.MJKEY }}
jobs:
test-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
docker pull rlworkgroup/metaworld-ci:latest
docker build \
--cache-from rlworkgroup/metaworld-ci:latest \
-f docker/Dockerfile \
-t "rlworkgroup/metaworld-ci:$GITHUB_RUN_ID" \
.
- name: Run the Docker image
run: |
docker run \
-t \
--rm \
-e "MJKEY=$MJKEY" \
--memory 7000m \
--memory-swap 7000m \
--name metaworld-ci rlworkgroup/metaworld-ci:$GITHUB_RUN_ID pytest -n 0 -v -m 'not large and not skip_on_ci'