@@ -16,26 +16,51 @@ jobs:
16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- python-version : ["3.8", "3.9", "3.10"]
19
+ python-version : [ "3.8", "3.9", "3.10" ]
20
20
21
21
steps :
22
- - uses : actions/checkout@v3
23
- - name : Set up Python ${{ matrix.python-version }}
24
- uses : actions/setup-python@v3
25
- with :
26
- python-version : ${{ matrix.python-version }}
27
- - name : Install dependencies
28
- run : |
29
- python -m pip install --upgrade pip
30
- python -m pip install .[test]
31
- python -m pip install flake8 pytest
32
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33
- - name : Lint with flake8
34
- run : |
35
- # stop the build if there are Python syntax errors or undefined names
36
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39
- - name : Test with pytest
40
- run : |
41
- pytest
22
+ - uses : actions/checkout@v3
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ uses : actions/setup-python@v3
25
+ with :
26
+ python-version : ${{ matrix.python-version }}
27
+ - name : Install dependencies
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install .[test]
31
+ python -m pip install flake8 pytest
32
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33
+ - name : Lint with flake8
34
+ run : |
35
+ # stop the build if there are Python syntax errors or undefined names
36
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39
+ - name : Test with pytest
40
+ run : |
41
+ pytest
42
+
43
+ test-shadow-hand :
44
+
45
+ runs-on : ubuntu-latest
46
+
47
+ steps :
48
+ - name : Clone mujoco_menagerie repository
49
+ run : |
50
+ git clone https://github.com/google-deepmind/mujoco_menagerie
51
+ working-directory : ${{ runner.workspace }}
52
+
53
+ - name : Copy test_shadow_hand.py to mujoco_menagerie/shadow_hand
54
+ run : |
55
+ cp test_shadow_hand.py mujoco_menagerie/shadow_hand
56
+ working-directory : ${{ runner.workspace }}
57
+
58
+ - name : Navigate to shadow_hand folder
59
+ run : |
60
+ cd mujoco_menagerie/shadow_hand
61
+ working-directory : ${{ runner.workspace }}/mujoco_menagerie
62
+
63
+ - name : Run test_shadow_hand.py
64
+ run : |
65
+ pytest test_shadow_hand.py
66
+ working-directory : ${{ runner.workspace }}/mujoco_menagerie/shadow_hand
0 commit comments