Skip to content

Commit a43fcc8

Browse files
author
etotmeni
committed
Test black on self-hosted
1 parent 521d277 commit a43fcc8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test_build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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"

0 commit comments

Comments
 (0)