Skip to content

Commit

Permalink
Merge pull request #125 from LucasAlegre/chore/add-python312-support
Browse files Browse the repository at this point in the history
Add python 3.12 support
  • Loading branch information
ffelten authored Oct 28, 2024
2 parents 665657b + f0a2eea commit bd98886
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:

jobs:
linux-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -20,12 +20,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pytest
pip install moviepy
pip install "mujoco==2.3.3"
pip install uv
uv pip install --system pytest
uv pip install --system moviepy
sudo apt-get install libgmp-dev
pip install imageio
pip install -e .[all]
uv pip install --system mo-gymnasium[all]
uv pip install --system -e .[all]
- name: Full Python tests
run: |
pytest tests/test_algos.py
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
dependencies = [
"mo-gymnasium >=1.1.0",
"mo-gymnasium >=1.3.0",
"gymnasium>=1.0.0",
"numpy >=1.21.0,<2.0.0",
"torch >=1.12.0",
Expand Down Expand Up @@ -67,7 +69,7 @@ morl_baselines = ["*.json", "assets/*"]
# Linting, testing, ... ########################################################
[tool.black]
line-length = 127
target-version = ['py38', 'py39', 'py310']
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'

[tool.isort]
Expand Down

0 comments on commit bd98886

Please sign in to comment.