forked from ci-group/revolve2
-
Notifications
You must be signed in to change notification settings - Fork 4
138 lines (132 loc) · 4.43 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: ci
on: [push, pull_request]
jobs:
test_install:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8.x"
- name: create virtualenv
run: |
pip install virtualenv
virtualenv .venv
. .venv/bin/activate
- name: install serialization
run: pip install ./serialization
- name: install actor_controller
run: pip install ./actor_controller
- name: install rpi_controller
run: pip install ./rpi_controller
- name: install core
run: pip install ./core
- name: install standard_resources
run: pip install ./standard_resources
- name: install runner isaacgym
#run: pip install ./runners/isaacgym[dev]
run: echo "IsaacGym is not open source so sadly we cannot test this."
- name: install runner mujoco
run: pip install ./runners/mujoco
- name: install genotype CPPNWIN
run: |
sudo apt install libcereal-dev
pip install ./genotypes/cppnwin
check_format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install_tools
run: pip install -r ./codetools/requirements.txt
- name: black
run: ./codetools/black/check.sh
- name: isort
run: ./codetools/isort/check.sh
- name: pydocstyle
run: ./codetools/pydocstyle/check.sh
- name: darglint
run: ./codetools/darglint/check.sh
- name: pyflakes
run: ./codetools/pyflakes/check.sh
- name: sort-all
run: |
./codetools/sort_all/fix.sh
[[ -z $(git status -s) ]]
git checkout -- .
mypy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8.x"
- name: create virtualenv
run: |
pip install virtualenv
virtualenv .venv
. .venv/bin/activate
- name: install serialization
run: pip install ./serialization[dev]
- name: install actor_controller
run: pip install ./actor_controller[dev]
- name: install rpi_controller
run: pip install ./rpi_controller[dev]
- name: install core
run: pip install ./core[dev]
- name: install standard_resources
run: pip install ./standard_resources[dev]
- name: install runner isaacgym
#run: pip install ./runners/isaacgym[dev]
run: echo "IsaacGym is not open source so sadly we cannot test this."
- name: install runner mujoco
run: pip install ./runners/mujoco[dev]
- name: install genotype CPPNWIN
run: |
sudo apt install libcereal-dev
pip install ./genotypes/cppnwin[dev]
- name: install requirements for mypy
run: pip install -r ./codetools/mypy/requirements.txt
- name: run mypy
run: ./codetools/mypy/check_opensource.sh
docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8.x"
- name: create virtualenv
run: |
pip install virtualenv
virtualenv .venv
. .venv/bin/activate
- name: install serialization
run: pip install ./serialization[dev]
- name: install actor_controller
run: pip install ./actor_controller[dev]
- name: install rpi_controller
run: pip install ./rpi_controller[dev]
- name: install core
run: pip install ./core[dev]
- name: install standard_resources
run: pip install ./standard_resources[dev]
- name: install runner isaacgym
#run: pip install ./runners/isaacgym[dev]
run: echo "IsaacGym is not open source so sadly we cannot test this."
- name: install runner mujoco
run: pip install ./runners/mujoco[dev]
- name: install genotype CPPNWIN
run: |
sudo apt install libcereal-dev
pip install ./genotypes/cppnwin[dev]
- name: install requirements for sphinx
run: pip install -r ./docs/requirements.txt
- name: sphinx
run: make -C docs html
- name: deploy
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/build/html
clean-exclude: .nojekyll