* Changes to support Gym 0.26.0 * Replace map by simpler list comprehension * Use syntax that is compatible with python 3.7 * Format code * Fix environment seeding in test environment, fix buffer_profile test * Remove self.seed() from __init__ * Fix random number generation * Fix throughput tests * Fix tests * Removed done field from Buffer, fixed throughput test, turned off wandb, fixed formatting, fixed type hints, allow preprocessing_fn with truncated and terminated arguments, updated docstrings * fix lint * fix * fix import * fix * fix mypy * pytest --ignore='test/3rd_party' * Use correct step API in _SetAttrWrapper * Format * Fix mypy * Format * Fix pydocstyle.
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
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:
|
|
- name: Cancel previous run
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
- 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
|
|
python -m pip uninstall ray -y
|
|
- name: wandb login
|
|
run: |
|
|
wandb login e2366d661b89f2bee877c40bee15502d67b7abef
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest test/base test/continuous --cov=tianshou --durations=0 -v --color=yes
|