-
Notifications
You must be signed in to change notification settings - Fork 244
37 lines (34 loc) · 1000 Bytes
/
format_check.yml
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: 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