forked from opendilab/DI-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (22 loc) · 762 Bytes
/
style.yml
File metadata and controls
26 lines (22 loc) · 762 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
# This workflow will check flake style
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: style
on: [push, pull_request]
jobs:
style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: code style
run: |
python -m pip install "yapf==0.29.0"
python -m pip install "flake8<=3.9.2"
python -m pip install "importlib-metadata<5.0.0"
make format_test flake_check