Merge pull request #221 from edbeeching/Ivan-267-patch-1 #409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests_ubuntu: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10.10] | |
os: ['ubuntu-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
# cpu version of pytorch | |
pip install .[test,sf] | |
- name: Download examples | |
run: | | |
make download_examples | |
- name: Test with pytest | |
run: | | |
make test | |
tests_windows: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10.10] | |
os: ['windows-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
# cpu version of pytorch | |
pip install .[test] | |
- name: Download examples | |
run: | | |
make download_examples | |
- name: Test with pytest | |
run: | | |
make test | |
tests_ubuntu_rllib: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10.10] | |
os: ['ubuntu-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel==0.38.4 | |
# cpu version of pytorch | |
pip install .[test] | |
- name: Install Rllib | |
run: | | |
pip uninstall -y stable-baselines3 gymnasium | |
pip install "ray[rllib]<=2.38.0" | |
pip install onnx==1.16.1 | |
- name: Download examples | |
run: | | |
make download_examples | |
- name: Test with pytest | |
run: | | |
make test | |
tests_windows_rllib: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10.10] | |
os: ['windows-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel==0.38.4 | |
# cpu version of pytorch | |
pip install .[test] | |
- name: Install Rllib | |
run: | | |
pip uninstall -y stable-baselines3 gymnasium | |
pip install "ray[rllib]<=2.38.0" | |
pip install onnx==1.16.1 | |
- name: Download examples | |
run: | | |
make download_examples | |
- name: Test with pytest | |
run: | | |
make test |