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 20e0586
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
13 changes: 5 additions & 8 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 @@ -43,13 +40,13 @@ jobs:
- name: Install Python Dependencies and Build Evolution Gym
run: |
poetry env use ${{ matrix.python }}
echo "Python Version: $(python --version)"
poetry install --no-root
poetry build
poetry build && poetry run python setup.py install
- name: Run Example
run: |
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 20e0586

Please # to comment.