forked from EvolutionGym/evogym
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.08 KB
/
run-example.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
name: Run Example
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-example:
name: Test / Run Example
strategy:
matrix:
os:
- "ubuntu-22.04"
- "ubuntu-latest"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install Poetry
run: |
pipx install poetry==1.8.2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev libglu1-mesa-dev libglew-dev xvfb
- name: Install Python Dependencies and Build Evolution Gym
run: |
echo "Python Version: $(python --version)"
poetry install --no-root
poetry build && poetry run python setup.py install
- name: Run Example
run: |
cd examples
poetry run python gym_test.py