forked from facebookresearch/param
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 923 Bytes
/
python_lint.yml
File metadata and controls
37 lines (29 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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'