forked from EvolutionGym/evogym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce30d9a
commit 58dc5c7
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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" | ||
python: | ||
- "3.8" | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- 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: | | ||
poetry env use python | ||
poetry install --no-root | ||
poetry build | ||
- name: Run Example | ||
run: | | ||
cd examples | ||
python gym_test.py | ||