Add a check in PPOExperiment
to avoid unintended behaviors.
#16
Workflow file for this run
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: Check Formatting | |
on: [pull_request] | |
jobs: | |
check_formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install isort black clang-format | |
- name: Check Python formatting with isort | |
run: isort --check-only . | |
- name: Check Python formatting with black | |
run: black --check . | |
- name: Check C++ formatting | |
run: | | |
find . -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.cu' -o -name '*.cuh' \) -exec clang-format --dry-run --Werror {} + |