Add gymnasium example #1302
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: format check | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python.3.9.x | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9.x | |
- name: Cache pip | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- name: Install packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install Cython numpy matplotlib onnxruntime onnx pytest tensorboardX | |
pip install -e . | |
pip install black mypy pylint==2.13.5 isort docformatter | |
- name: Check format | |
run: | | |
./scripts/format | |
- name: Linter | |
run: | | |
./scripts/lint | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |