File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a workflow to format Python code with black formatter
2+
3+ name : Python Code Style
4+
5+ # Controls when the action will run. Triggers the workflow on push or pull request
6+ # events but only for the master branch
7+ on :
8+ pull_request :
9+ push :
10+ branches : [master]
11+
12+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+ jobs :
14+
15+ black :
16+ # The type of runner that the job will run on
17+ runs-on : self-hosted
18+
19+ # Steps represent a sequence of tasks that will be executed as part of the job
20+ steps :
21+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+ - uses : actions/checkout@v2
23+ # Set up a Python environment for use in actions
24+ - uses : actions/setup-python@v2
25+
26+ # Run black code formatter
27+ - uses : psf/black@21.4b2
28+ with :
29+ args : " . --check"
You can’t perform that action at this time.
0 commit comments