Commit 67dc672e5c478467895b5f4f6e8c1e4eff879fbe

Authored by Henry Fredrick Schreiner
Committed by Henry Schreiner
1 parent 2244ecc3

Using action for pre-commit

.github/workflows/tests.yml
... ... @@ -9,24 +9,16 @@ on:
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
... ...
README.md
... ... @@ -5,6 +5,7 @@
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
... ...