- Batch: do not raise error when it finds list of np.array with different shape[0]. - Venv's obs: add try...except block for np.stack(obs_list) - remove venv.__del__ since it is buggy
28 lines
774 B
YAML
28 lines
774 B
YAML
name: Windows/MacOS
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
cpu-extra:
|
|
runs-on: ${{ matrix.os }}
|
|
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, windows-latest]
|
|
python-version: [3.7, 3.8]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Upgrade pip
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools wheel
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install ".[dev]" --upgrade
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest test/base test/continuous --cov=tianshou --durations=0 -v
|