Skip to content

Commit

Permalink
Feature/upgrade-python (#262)
Browse files Browse the repository at this point in the history
* Upgrade max python version to 3.11

* Tests on python 3.11

* Add badges

* Force use python from venv

* Add swig to path

* Update swig path from which on Linux

* Install swig from apy

* Add sudo

* Install swig from chocolatey
  • Loading branch information
belerico authored Apr 11, 2024
1 parent 32a3736 commit b7a0b63
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cpu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

timeout-minutes: 20

Expand All @@ -46,16 +46,16 @@ jobs:
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
choco upgrade swig -y
env\\Scripts\\Activate.ps1
pip install swig
pip install -e .[atari,box2d,test,dev]
python -m pip install -e .[atari,box2d,test,dev]
- name: Install packages Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install --no-install-recommends -y --only-upgrade swig
source env/bin/activate
pip install swig
pip install -e .[atari,box2d,test,dev]
python -m pip install -e .[atari,box2d,test,dev]
- name: Run tests Windows
if: ${{ matrix.os == 'windows-latest' }}
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ⚡ SheepRL 🐑

[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)

<p align="center">
<img src="./assets/images/logo.svg" style="width:40%">
</p>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ maintainers = [
keywords = ["reinforcement", "machine", "learning", "distributed", "production"]
license = { file = "LICENSE" }
readme = { file = "docs/README.md", content-type = "text/markdown" }
requires-python = ">=3.8,<3.11"
requires-python = ">=3.8,<3.12"
classifiers = ["Programming Language :: Python", "Topic :: Scientific/Engineering :: Artificial Intelligence"]
dependencies = [
"gymnasium==0.29.*",
Expand Down

0 comments on commit b7a0b63

Please sign in to comment.