Remove unused functions and arguments from comms_utils.py #195
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: Python Linting | |
on: pull_request | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Python Environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Dependencies | |
run: | | |
pip install black | |
- name: Run Black | |
run: black . --check | |
- name: Run tests | |
run: | | |
python -m pip install -r requirements.txt | |
python -m pip install et_replay/ | |
python et_replay/tests/test_execution_trace.py | |
- name: Validate imports | |
run: | | |
python -m pip install fbgemm-gpu | |
python -c 'from et_replay import ExecutionTrace' | |
python -c 'from et_replay.comm import comms_utils' | |
python -c 'from et_replay.tools.validate_trace import TraceValidator' | |
python -c 'from et_replay.utils import trace_handler' |