Skip to content

Commit

Permalink
Test sb3 with np 2.0 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuet committed Jul 4, 2024
1 parent f250798 commit 5137c07
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,10 @@ concurrency:
cancel-in-progress: true

jobs:
get-archi:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: ["macos-latest", "macos-12"]
arch: ["arm64", "x86_64"]
exclude:
- os: macos-12
arch: arm64
- os: macos-latest
arch: x86_64
fail-fast: false
runs-on: ${{ matrix.os }}
test-sb3:
runs-on: windows-latest
steps:
- run: |
echo ${{ matrix }}
uname -a
- uses: actions/checkout@v4
- run: |
python -m pip install gymnasium stable-baselines3 "numpy>=2.0"
python ex.py
8 changes: 8 additions & 0 deletions ex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import gymnasium

from stable_baselines3 import PPO

env = gymnasium.make("CartPole-v1")

model = PPO("MlpPolicy", env, verbose=1)
model.learn(total_timesteps=100)

0 comments on commit 5137c07

Please sign in to comment.