Skip to content

Commit

Permalink
fix: specify python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Okabe-Junya committed Apr 24, 2024
1 parent 7ddd1d7 commit 9c125c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/run-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
branches:
- main


jobs:
run-example:
name: Test / Run Example
Expand All @@ -17,8 +16,6 @@ jobs:
os:
- "ubuntu-22.04"
- "ubuntu-latest"
python:
- "3.8"

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -27,10 +24,10 @@ jobs:
with:
submodules: true

- name: Set up Python ${{ matrix.python }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
python-version-file: .python-version

- name: Install Poetry
run: |
Expand All @@ -39,17 +36,13 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev libglu1-mesa-dev libglew-dev xvfb
sudo apt-get install -y xorg-dev libglu1-mesa-dev
- name: Install Python Dependencies and Build Evolution Gym
- name: Build evogym and Run Example
run: |
poetry env use ${{ matrix.python }}
echo "Python Version: $(python --version)"
echo "Poesy Version: $(poetry --version)"
poetry install --no-root
poetry build
- name: Run Example
run: |
poetry build && poetry run python setup.py install
cd examples
python gym_test.py
poetry run python gym_test.py
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.19
3.8.18
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "3.8.19"
python = "3.8.18"
glfw = "^2.5.0"
gym = "^0.22.0"
h5py = "^3.6.0"
Expand Down

0 comments on commit 9c125c9

Please # to comment.