Skip to content

Commit

Permalink
feat: add e2e test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Okabe-Junya committed Apr 24, 2024
1 parent ce30d9a commit 777c23f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/run-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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 install --no-root
poetry build
- name: Run Example
run: |
cd examples
python gym_test.py

0 comments on commit 777c23f

Please # to comment.