File tree Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 9
9
- master
10
10
11
11
jobs :
12
- formatting :
12
+ pre-commit :
13
13
name : Formatting
14
14
runs-on : ubuntu-latest
15
-
16
15
steps :
17
- - uses : actions/checkout@v1
18
- - uses : actions/setup-python@v1
19
- with :
20
- python-version : ' 3.7'
21
- architecture : ' x64'
22
-
23
- - name : Install pre-commit
24
- run : python -m pip install pre-commit
25
-
26
- - name : Run pre-commit
27
- run : pre-commit run --all
28
-
29
- - name : Display format changes
30
- run : git diff --exit-code
31
- if : always()
32
-
16
+ - uses : actions/checkout@v1
17
+ - uses : actions/setup-python@v1
18
+ - name : set PY
19
+ run : echo "::set-env name=PY::$(python --version --version | sha256sum | cut -d' ' -f1)"
20
+ - uses : actions/cache@v1
21
+ with :
22
+ path : ~/.cache/pre-commit
23
+ key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
24
+ - uses : pre-commit/action@v1.0.0
Original file line number Diff line number Diff line change 5
5
[ ![ Build Status Linux and macOS] [ travis-badge ]] [ travis ]
6
6
[ ![ Build Status Windows] [ appveyor-badge ]] [ appveyor ]
7
7
[ ![ Build Status Azure] [ azure-badge ]] [ azure ]
8
+ [ ![ Actions Status] [ actions-badge ]] [ actions-link ]
8
9
[ ![ Code Coverage] [ codecov-badge ]] [ codecov ]
9
10
[ ![ Codacy Badge] [ codacy-badge ]] [ codacy-link ]
10
11
[ ![ Join the chat at https://gitter.im/CLI11gitter/Lobby ] [ gitter-badge ]] [ gitter ]
@@ -870,6 +871,8 @@ CLI11 was developed at the [University of Cincinnati][] to support of the [GooFi
870
871
[travis]: https://travis-ci.org/CLIUtils/CLI11
871
872
[appveyor-badge]: https://img.shields.io/appveyor/ci/HenrySchreiner/cli11/master.svg?label=Windows
872
873
[appveyor]: https://ci.appveyor.com/project/HenrySchreiner/cli11
874
+ [actions-badge]: https://github.com/CLIUtils/CLI11/workflows/Tests/badge.svg
875
+ [actions-link]: https://github.com/CLIUtils/CLI11/actions
873
876
[codecov-badge]: https://codecov.io/gh/CLIUtils/CLI11/branch/master/graph/badge.svg
874
877
[codecov]: https://codecov.io/gh/CLIUtils/CLI11
875
878
[gitter-badge]: https://badges.gitter.im/CLI11gitter/Lobby.svg
You can’t perform that action at this time.
0 commit comments